summaryrefslogtreecommitdiff
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
commitd42892ab5ec97cc2167f9f560786bceca1409622 (patch)
tree97c4180c86e1f79cbe775ef9137d14552e0a1dd2 /package/busybox
parent7f6ee846b7fc1e3124b3cf50f90413b9b7adfc86 (diff)
downloadmtk-20170518-d42892ab5ec97cc2167f9f560786bceca1409622.zip
mtk-20170518-d42892ab5ec97cc2167f9f560786bceca1409622.tar.gz
mtk-20170518-d42892ab5ec97cc2167f9f560786bceca1409622.tar.bz2
fix busybox compile on mac os x
SVN-Revision: 12409
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 0000000..a5c5379f
--- /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