aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-02-08 23:36:16 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-02-08 23:36:16 +0000
commita88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd (patch)
treef15f2946e7d1694a0e92ca5df4addca986e4f40b
parent3aeaee33b6de00da1603a81fcebb15c5971b7c0a (diff)
downloadbusybox-a88cb5025c3ffd9dc4e7bde58aa58b63afcf65bd.tar.gz
Patch from mathuria, compatability with solaris
-rw-r--r--coreutils/chown.c2
-rw-r--r--include/busybox.h2
-rw-r--r--include/libbb.h3
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 @@
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)
{
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[];
/* 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)))
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 @@
#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 */