diff options
Diffstat (limited to 'include/busybox.h')
-rw-r--r-- | include/busybox.h | 17 |
1 files changed, 6 insertions, 11 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 |