diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-06-28 20:11:28 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-06-28 20:11:28 +0000 |
commit | a44790f53919f0d129c78b8a288e5f5cac331c66 (patch) | |
tree | 8baa3cf3a7a6f6f6f6323403b24d772d9fb96c3a | |
parent | a2db097d662e5d739b5a0748208dc76055260061 (diff) | |
download | busybox-w32-a44790f53919f0d129c78b8a288e5f5cac331c66.tar.gz busybox-w32-a44790f53919f0d129c78b8a288e5f5cac331c66.tar.bz2 busybox-w32-a44790f53919f0d129c78b8a288e5f5cac331c66.zip |
Better cross libc support.
-Erik
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | init.c | 1 | ||||
-rw-r--r-- | init/init.c | 1 | ||||
-rw-r--r-- | internal.h | 3 | ||||
-rw-r--r-- | utility.c | 1 |
5 files changed, 3 insertions, 7 deletions
@@ -52,11 +52,11 @@ endif | |||
52 | 52 | ||
53 | # -D_GNU_SOURCE is needed because environ is used in init.c | 53 | # -D_GNU_SOURCE is needed because environ is used in init.c |
54 | ifeq ($(DODEBUG),true) | 54 | ifeq ($(DODEBUG),true) |
55 | CFLAGS += -Wall -g -fno-builtin -D_GNU_SOURCE | 55 | CFLAGS += -Wall -g -D_GNU_SOURCE |
56 | LDFLAGS += | 56 | LDFLAGS += |
57 | STRIP = | 57 | STRIP = |
58 | else | 58 | else |
59 | CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE | 59 | CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE |
60 | LDFLAGS += -s | 60 | LDFLAGS += -s |
61 | STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) | 61 | STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) |
62 | #Only staticly link when _not_ debugging | 62 | #Only staticly link when _not_ debugging |
@@ -45,7 +45,6 @@ | |||
45 | #include <sys/fcntl.h> | 45 | #include <sys/fcntl.h> |
46 | #include <sys/ioctl.h> | 46 | #include <sys/ioctl.h> |
47 | #include <sys/mount.h> | 47 | #include <sys/mount.h> |
48 | //#include <sys/sysmacros.h> | ||
49 | #include <sys/types.h> | 48 | #include <sys/types.h> |
50 | #include <sys/vt.h> /* for vt_stat */ | 49 | #include <sys/vt.h> /* for vt_stat */ |
51 | #include <sys/wait.h> | 50 | #include <sys/wait.h> |
diff --git a/init/init.c b/init/init.c index 9289b86a6..2c2751391 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -45,7 +45,6 @@ | |||
45 | #include <sys/fcntl.h> | 45 | #include <sys/fcntl.h> |
46 | #include <sys/ioctl.h> | 46 | #include <sys/ioctl.h> |
47 | #include <sys/mount.h> | 47 | #include <sys/mount.h> |
48 | //#include <sys/sysmacros.h> | ||
49 | #include <sys/types.h> | 48 | #include <sys/types.h> |
50 | #include <sys/vt.h> /* for vt_stat */ | 49 | #include <sys/vt.h> /* for vt_stat */ |
51 | #include <sys/wait.h> | 50 | #include <sys/wait.h> |
diff --git a/internal.h b/internal.h index c39dfde62..6e4f06cb5 100644 --- a/internal.h +++ b/internal.h | |||
@@ -34,9 +34,6 @@ | |||
34 | #include <sys/stat.h> | 34 | #include <sys/stat.h> |
35 | #include <sys/param.h> | 35 | #include <sys/param.h> |
36 | #include <mntent.h> | 36 | #include <mntent.h> |
37 | #if ! defined(__GLIBC__) && ! defined (__UCLIBC__) | ||
38 | #include <asm/string.h> | ||
39 | #endif | ||
40 | 37 | ||
41 | 38 | ||
42 | /* Some useful definitions */ | 39 | /* Some useful definitions */ |
@@ -135,6 +135,7 @@ extern int get_kernel_revision(void) | |||
135 | 135 | ||
136 | #if defined BB_FREE || defined BB_INIT || defined BB_UNAME || defined BB_UPTIME | 136 | #if defined BB_FREE || defined BB_INIT || defined BB_UNAME || defined BB_UPTIME |
137 | #include <sys/syscall.h> | 137 | #include <sys/syscall.h> |
138 | #include <linux/unistd.h> | ||
138 | _syscall1(int, sysinfo, struct sysinfo *, info); | 139 | _syscall1(int, sysinfo, struct sysinfo *, info); |
139 | #endif /* BB_INIT */ | 140 | #endif /* BB_INIT */ |
140 | 141 | ||