busybox: fix build on FreeBSD 10.1
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 5 Feb 2015 23:32:17 +0000 (23:32 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 5 Feb 2015 23:32:17 +0000 (23:32 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 44284

package/utils/busybox/patches/102-freebsd-compat.patch [new file with mode: 0644]

diff --git a/package/utils/busybox/patches/102-freebsd-compat.patch b/package/utils/busybox/patches/102-freebsd-compat.patch
new file mode 100644 (file)
index 0000000..26d1ec6
--- /dev/null
@@ -0,0 +1,26 @@
+--- a/scripts/basic/docproc.c
++++ b/scripts/basic/docproc.c
+@@ -39,7 +39,10 @@
+ #include <limits.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
++
++#ifndef __FreeBSD__
+ #include <alloca.h>
++#endif
+ /* exitstatus is used to keep track of any failing calls to kernel-doc,
+  * but execution continues. */
+--- a/scripts/basic/fixdep.c
++++ b/scripts/basic/fixdep.c
+@@ -113,7 +113,10 @@
+ #include <limits.h>
+ #include <ctype.h>
+ #include <arpa/inet.h>
++
++#ifndef __FreeBSD__
+ #include <alloca.h>
++#endif
+ /* bbox: not needed
+ #define INT_CONF ntohl(0x434f4e46)