[uClibc]__NR_* definitions

Erik Andersen andersen at codepoet.org
Tue Mar 12 00:31:59 UTC 2002


On Mon Mar 11, 2002 at 04:08:35PM -0800, David Byron wrote:
> We don't see these errors using an arm-linux toolchain.  Is it OK for setgroups.c
> to include both <sys/syscall.h> (which includes bits/syscall.h), and asm/unistd.h?

Ok, I've reproduced the problem.  Lemme see...  Something like
this should fix that right up...

> Thanks for your help.

--- pwd_grp/setgroups.c	19 Nov 2001 23:57:54 -0000	1.5
+++ pwd_grp/setgroups.c	12 Mar 2002 00:31:09 -0000
@@ -25,8 +25,14 @@
 #include <unistd.h>
 #include <features.h>
 #include <sys/types.h>
+/* Kernel headers before 2.1.mumble need this on the Alpha to get
+   _syscall* defined.  */
+#define __LIBRARY__
 #include <sys/syscall.h>
+#if __GNU_LIBRARY__ < 5
+/* This is needed for libc5 */
 #include <asm/unistd.h>
+#endif
 #include "grp.h"
 
 //#define __NR_setgroups        81

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list