diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-02-08 23:36:16 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-02-08 23:36:16 +0000 |
commit | a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd (patch) | |
tree | f15f2946e7d1694a0e92ca5df4addca986e4f40b | |
parent | 3aeaee33b6de00da1603a81fcebb15c5971b7c0a (diff) | |
download | busybox-w32-a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd.tar.gz busybox-w32-a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd.tar.bz2 busybox-w32-a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd.zip |
Patch from mathuria, compatability with solaris
-rw-r--r-- | coreutils/chown.c | 2 | ||||
-rw-r--r-- | include/busybox.h | 2 | ||||
-rw-r--r-- | include/libbb.h | 3 |
3 files changed, 6 insertions, 1 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c index 846e27c20..4e766a90b 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c | |||
@@ -35,7 +35,7 @@ | |||
35 | static long uid; | 35 | static long uid; |
36 | static long gid; | 36 | static long gid; |
37 | 37 | ||
38 | static int (*chown_func)(const char *, __uid_t, __gid_t) = chown; | 38 | static int (*chown_func)(const char *, uid_t, gid_t) = chown; |
39 | 39 | ||
40 | static int fileAction(const char *fileName, struct stat *statbuf, void* junk) | 40 | static int fileAction(const char *fileName, struct stat *statbuf, void* junk) |
41 | { | 41 | { |
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 */ |