aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-27 19:35:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-27 19:35:47 +0000
commitf56b26987b8540ae5ca1c2a3343e4a1a0652a5c0 (patch)
tree7fab250b06258ed847664515a244b2624600ef03 /package/busybox
parent81f3bf9bcc6766e4e3d468f4e4d624df2461e5cc (diff)
downloadmaster-187ad058-f56b26987b8540ae5ca1c2a3343e4a1a0652a5c0.tar.gz
master-187ad058-f56b26987b8540ae5ca1c2a3343e4a1a0652a5c0.tar.bz2
master-187ad058-f56b26987b8540ae5ca1c2a3343e4a1a0652a5c0.zip
fix busybox compile on mac os x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12409 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/patches/002-darwin_compile_fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/busybox/patches/002-darwin_compile_fix.patch b/package/busybox/patches/002-darwin_compile_fix.patch
new file mode 100644
index 0000000000..a5c5379f97
--- /dev/null
+++ b/package/busybox/patches/002-darwin_compile_fix.patch
@@ -0,0 +1,13 @@
+--- a/include/libbb.h
++++ b/include/libbb.h
+@@ -83,7 +83,10 @@
+ extern char **environ;
+
+ /* Set the group set for the current user to GROUPS (N of them). */
++#if !defined(__APPLE__)
+ int setgroups(size_t n, const gid_t *groups);
++#endif
++
+ #if defined(__GLIBC__) && __GLIBC__ < 2
+ int vdprintf(int d, const char *format, va_list ap);
+ #endif