diff options
| author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-02-08 23:36:16 +0000 |
|---|---|---|
| committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-02-08 23:36:16 +0000 |
| commit | a096d1b1b70cedfd1e599c52fdee7c1401a5c76c (patch) | |
| tree | f15f2946e7d1694a0e92ca5df4addca986e4f40b /include | |
| parent | e16b52cf97bbf3785ffe7b395b27469688b31376 (diff) | |
| download | busybox-w32-a096d1b1b70cedfd1e599c52fdee7c1401a5c76c.tar.gz busybox-w32-a096d1b1b70cedfd1e599c52fdee7c1401a5c76c.tar.bz2 busybox-w32-a096d1b1b70cedfd1e599c52fdee7c1401a5c76c.zip | |
Patch from mathuria, compatability with solaris
git-svn-id: svn://busybox.net/trunk/busybox@6539 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
| -rw-r--r-- | include/busybox.h | 2 | ||||
| -rw-r--r-- | include/libbb.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/busybox.h b/include/busybox.h index 1b69ef955..8285494ef 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
| @@ -95,7 +95,9 @@ extern const struct BB_applet applets[]; | |||
| 95 | 95 | ||
| 96 | /* Bit map related macros -- libc5 doens't provide these... sigh. */ | 96 | /* Bit map related macros -- libc5 doens't provide these... sigh. */ |
| 97 | #ifndef setbit | 97 | #ifndef setbit |
| 98 | #ifndef NBBY | ||
| 98 | #define NBBY CHAR_BIT | 99 | #define NBBY CHAR_BIT |
| 100 | #endif | ||
| 99 | #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) | 101 | #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) |
| 100 | #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) | 102 | #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) |
| 101 | #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) | 103 | #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) |
diff --git a/include/libbb.h b/include/libbb.h index 42e89a5e9..c057ce493 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -55,7 +55,10 @@ | |||
| 55 | 55 | ||
| 56 | #if (__GNU_LIBRARY__ < 5) && (!defined __dietlibc__) | 56 | #if (__GNU_LIBRARY__ < 5) && (!defined __dietlibc__) |
| 57 | /* libc5 doesn't define socklen_t */ | 57 | /* libc5 doesn't define socklen_t */ |
| 58 | #ifndef _SOCKLEN_T | ||
| 59 | #define _SOCKLEN_T | ||
| 58 | typedef unsigned int socklen_t; | 60 | typedef unsigned int socklen_t; |
| 61 | #endif | ||
| 59 | /* libc5 doesn't implement BSD 4.4 daemon() */ | 62 | /* libc5 doesn't implement BSD 4.4 daemon() */ |
| 60 | extern int daemon (int nochdir, int noclose); | 63 | extern int daemon (int nochdir, int noclose); |
| 61 | /* libc5 doesn't implement strtok_r */ | 64 | /* libc5 doesn't implement strtok_r */ |
