mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
26
package/utils/busybox/patches/102-freebsd-compat.patch
Normal file
26
package/utils/busybox/patches/102-freebsd-compat.patch
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user