Patch from mathuria, compatability with solaris
authorGlenn L McGrath <bug1@ihug.co.nz>
Sat, 8 Feb 2003 23:36:16 +0000 (23:36 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sat, 8 Feb 2003 23:36:16 +0000 (23:36 -0000)
coreutils/chown.c
include/busybox.h
include/libbb.h

index 846e27c20c114ba2a52070f4926428ca0c1fb55e..4e766a90b7a97eda57dafc414c08370f4e021837 100644 (file)
@@ -35,7 +35,7 @@
 static long uid;
 static long gid;
 
-static int (*chown_func)(const char *, __uid_t, __gid_t) = chown;
+static int (*chown_func)(const char *, uid_t, gid_t) = chown;
 
 static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
 {
index 1b69ef955d5a61b02f6091959368d6504b266f9a..8285494ef35fd2a2c55d241b2c8b7d71ef9c6d96 100644 (file)
@@ -95,7 +95,9 @@ extern const struct BB_applet applets[];
 
 /* Bit map related macros -- libc5 doens't provide these... sigh.  */
 #ifndef setbit
+#ifndef NBBY
 #define NBBY            CHAR_BIT
+#endif
 #define setbit(a,i)     ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
 #define clrbit(a,i)     ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))
 #define isset(a,i)      ((a)[(i)/NBBY] & (1<<((i)%NBBY)))
index 42e89a5e938b2b477fdfa4dd9536b2ef3cb58e78..c057ce493ccd7754256ff18cba8cc08bc598375a 100644 (file)
 
 #if (__GNU_LIBRARY__ < 5) && (!defined __dietlibc__)
 /* libc5 doesn't define socklen_t */
+#ifndef _SOCKLEN_T
+#define _SOCKLEN_T
 typedef unsigned int socklen_t;
+#endif
 /* libc5 doesn't implement BSD 4.4 daemon() */
 extern int daemon (int nochdir, int noclose);
 /* libc5 doesn't implement strtok_r */