Better cross libc support.
authorEric Andersen <andersen@codepoet.org>
Wed, 28 Jun 2000 20:11:28 +0000 (20:11 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 28 Jun 2000 20:11:28 +0000 (20:11 -0000)
 -Erik

Makefile
init.c
init/init.c
internal.h
utility.c

index f44790c80557c02d97730431afccd940f850ddaa..16573ea893423feb7e6990c76191835e8a051afd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -52,11 +52,11 @@ endif
 
 # -D_GNU_SOURCE is needed because environ is used in init.c
 ifeq ($(DODEBUG),true)
-    CFLAGS += -Wall -g -fno-builtin -D_GNU_SOURCE
+    CFLAGS += -Wall -g -D_GNU_SOURCE
     LDFLAGS += 
     STRIP   =
 else
-    CFLAGS  += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
+    CFLAGS  += -Wall $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
     LDFLAGS  += -s
     STRIP    = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
     #Only staticly link when _not_ debugging 
diff --git a/init.c b/init.c
index 9289b86a6de7ccdc1ba1fe635738f53e4cf5addb..2c275139122f8fda04033f8bba067e4655ac3922 100644 (file)
--- a/init.c
+++ b/init.c
@@ -45,7 +45,6 @@
 #include <sys/fcntl.h>
 #include <sys/ioctl.h>
 #include <sys/mount.h>
-//#include <sys/sysmacros.h>
 #include <sys/types.h>
 #include <sys/vt.h>                            /* for vt_stat */
 #include <sys/wait.h>
index 9289b86a6de7ccdc1ba1fe635738f53e4cf5addb..2c275139122f8fda04033f8bba067e4655ac3922 100644 (file)
@@ -45,7 +45,6 @@
 #include <sys/fcntl.h>
 #include <sys/ioctl.h>
 #include <sys/mount.h>
-//#include <sys/sysmacros.h>
 #include <sys/types.h>
 #include <sys/vt.h>                            /* for vt_stat */
 #include <sys/wait.h>
index c39dfde62df91e21495c2dc8f396f012c27d6efd..6e4f06cb516fcb5dc3d3aefb61a944f95892ce0c 100644 (file)
@@ -34,9 +34,6 @@
 #include <sys/stat.h>
 #include <sys/param.h>
 #include <mntent.h>
-#if ! defined(__GLIBC__) && ! defined (__UCLIBC__)
-#include <asm/string.h>
-#endif
 
 
 /* Some useful definitions */
index 061ba64236ef15d54593ba7594f032e0ad543ab3..a45edde5d4dfdffe95498ad68b520b66c3f35483 100644 (file)
--- a/utility.c
+++ b/utility.c
@@ -135,6 +135,7 @@ extern int get_kernel_revision(void)
 
 #if defined BB_FREE || defined BB_INIT || defined BB_UNAME || defined BB_UPTIME
 #include <sys/syscall.h>
+#include <linux/unistd.h>
 _syscall1(int, sysinfo, struct sysinfo *, info);
 #endif                                                 /* BB_INIT */