aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox/patches/102-freebsd-compat.patch
blob: 26d1ec6f714ccd81ee7b0ae94f12e17b12735772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)