diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-05 23:32:17 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-05 23:32:17 +0000 |
commit | bfe1d210b6a87455a89b584cd4ed2c5180f01a70 (patch) | |
tree | 7c57a30bfbb9f45c60e25fca5dce57745876bea7 | |
parent | 2467d38ca5d3169bf5c9444b3a0db77fe1d3348c (diff) | |
download | upstream-bfe1d210b6a87455a89b584cd4ed2c5180f01a70.tar.gz upstream-bfe1d210b6a87455a89b584cd4ed2c5180f01a70.tar.bz2 upstream-bfe1d210b6a87455a89b584cd4ed2c5180f01a70.zip |
busybox: fix build on FreeBSD 10.1
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44284 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/utils/busybox/patches/102-freebsd-compat.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/utils/busybox/patches/102-freebsd-compat.patch b/package/utils/busybox/patches/102-freebsd-compat.patch new file mode 100644 index 0000000000..26d1ec6f71 --- /dev/null +++ b/package/utils/busybox/patches/102-freebsd-compat.patch @@ -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) |