summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_misc.c
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2000-12-21 20:19:22 +0000
committerthorpej <thorpej@NetBSD.org>2000-12-21 20:19:22 +0000
commitf7a4dd48fd1a05a20fdd54af0e50097a67d01663 (patch)
tree74f7cc87e7dd4decd497cc5bcadfb2ceb8057c30 /sys/compat/linux/common/linux_misc.c
parente57273c82ea249b4eaf6345b4fe1b34b014bc798 (diff)
Only include the 16-bit uid/gid stuff if on i386 or m68k. This is a
little ugly, but hey, so is Linux.
Diffstat (limited to 'sys/compat/linux/common/linux_misc.c')
-rw-r--r--sys/compat/linux/common/linux_misc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c
index fc149992104..0695237961a 100644
--- a/sys/compat/linux/common/linux_misc.c
+++ b/sys/compat/linux/common/linux_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.c,v 1.78 2000/12/18 14:40:03 fvdl Exp $ */
+/* $NetBSD: linux_misc.c,v 1.79 2000/12/21 20:19:22 thorpej Exp $ */
/*-
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -867,6 +867,7 @@ linux_sys_personality(p, v, retval)
return 0;
}
+#if defined(__i386__) || defined(__m68k__)
/*
* The calls are here because of type conversions.
*/
@@ -909,6 +910,7 @@ linux_sys_setregid16(p, v, retval)
return sys_setregid(p, &bsa, retval);
}
+#endif /* __i386__ || __m68k__ */
/*
* We have nonexistent fsuid equal to uid.
@@ -1071,6 +1073,7 @@ linux_sys_getresuid(p, v, retval)
return (copyout(&pc->p_svuid, SCARG(uap, suid), sizeof(uid_t)));
}
+#if defined(__i386__) || defined(__m68k__)
/*
* XXX fix these for 0xffff == -1 for old Linux uids return case.
*/
@@ -1126,6 +1129,7 @@ linux_sys_getegid16(p, v, retval)
{
return sys_getegid(p, v, retval);
}
+#endif /* __i386__ || __m68k__ */
int
linux_sys_ptrace(p, v, retval)