diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/busybox.h | 17 | ||||
-rw-r--r-- | include/libbb.h | 12 |
2 files changed, 6 insertions, 23 deletions
diff --git a/include/busybox.h b/include/busybox.h index 8285494ef..aaa844f43 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -31,6 +31,12 @@ | |||
31 | #include <sys/stat.h> | 31 | #include <sys/stat.h> |
32 | #include <sys/types.h> | 32 | #include <sys/types.h> |
33 | 33 | ||
34 | #if __GNU_LIBRARY__ < 5 | ||
35 | #ifndef __dietlibc__ | ||
36 | #error "Sorry, libc5 is not supported" | ||
37 | #endif | ||
38 | #endif | ||
39 | |||
34 | #define BB_BANNER "BusyBox v" BB_VER " (" BB_BT ")" | 40 | #define BB_BANNER "BusyBox v" BB_VER " (" BB_BT ")" |
35 | 41 | ||
36 | #ifdef DMALLOC | 42 | #ifdef DMALLOC |
@@ -93,17 +99,6 @@ extern const struct BB_applet applets[]; | |||
93 | #endif | 99 | #endif |
94 | 100 | ||
95 | 101 | ||
96 | /* Bit map related macros -- libc5 doens't provide these... sigh. */ | ||
97 | #ifndef setbit | ||
98 | #ifndef NBBY | ||
99 | #define NBBY CHAR_BIT | ||
100 | #endif | ||
101 | #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) | ||
102 | #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) | ||
103 | #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) | ||
104 | #define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0) | ||
105 | #endif | ||
106 | |||
107 | #ifndef RB_POWER_OFF | 102 | #ifndef RB_POWER_OFF |
108 | /* Stop system and switch power off if possible. */ | 103 | /* Stop system and switch power off if possible. */ |
109 | #define RB_POWER_OFF 0x4321fedc | 104 | #define RB_POWER_OFF 0x4321fedc |
diff --git a/include/libbb.h b/include/libbb.h index 6bd096c7f..a4d8c7196 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -57,18 +57,6 @@ | |||
57 | # define inline | 57 | # define inline |
58 | #endif | 58 | #endif |
59 | 59 | ||
60 | #if (__GNU_LIBRARY__ < 5) && (!defined __dietlibc__) | ||
61 | /* libc5 doesn't define socklen_t */ | ||
62 | #ifndef _SOCKLEN_T | ||
63 | #define _SOCKLEN_T | ||
64 | typedef unsigned int socklen_t; | ||
65 | #endif | ||
66 | /* libc5 doesn't implement BSD 4.4 daemon() */ | ||
67 | extern int daemon (int nochdir, int noclose); | ||
68 | /* libc5 doesn't implement strtok_r */ | ||
69 | char *strtok_r(char *s, const char *delim, char **ptrptr); | ||
70 | #endif | ||
71 | |||
72 | /* Convenience macros to test the version of gcc. */ | 60 | /* Convenience macros to test the version of gcc. */ |
73 | #if defined __GNUC__ && defined __GNUC_MINOR__ | 61 | #if defined __GNUC__ && defined __GNUC_MINOR__ |
74 | # define __GNUC_PREREQ(maj, min) \ | 62 | # define __GNUC_PREREQ(maj, min) \ |