[klibc] [PATCH] fix klibc build against current kernel headers

Olaf Hering olh at suse.de
Sun Mar 14 21:14:52 PST 2004


2.6.4 changed asm/unistd.h, it includes now linux/types.h. This breaks
compilation of fork.c and mmap.c, duplicate typedefs on ppc64 and x86_64.
Moving one include fixes the compile.

--- klibc/fork.c
+++ klibc/fork.c	2004/03/14 15:04:51
@@ -5,8 +5,8 @@
  * doesn't have sys_fork, only sys_clone...
  */
 
-#include <sys/syscall.h>
 #include <signal.h>
+#include <sys/syscall.h>
 #include <unistd.h>
 
 #ifdef __NR_fork
--- klibc/mmap.c
+++ klibc/mmap.c	2004/03/14 15:04:55
@@ -4,8 +4,8 @@
 
 #include <stdint.h>
 #include <errno.h>
-#include <sys/syscall.h>
 #include <sys/mman.h>
+#include <sys/syscall.h>
 #include <asm/page.h>		/* For PAGE_SHIFT */
 
 #if defined(__sparc__)

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG



More information about the klibc mailing list