summaryrefslogtreecommitdiff
path: root/package/busybox/patches/patch-include_platform_h
blob: 307c588ecad1007a7ab37a5e1d9e152c9c995d00 (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
27
28
29
30
diff -Nur busybox-1.17.0.orig/include/platform.h busybox-1.17.0/include/platform.h
--- busybox-1.17.0.orig/include/platform.h	2010-06-24 04:40:43.000000000 +0200
+++ busybox-1.17.0/include/platform.h	2010-07-08 12:15:16.099001527 +0200
@@ -20,6 +20,8 @@
 #define HAVE_STRSIGNAL 1
 #define HAVE_VASPRINTF 1
 
+#include <sys/param.h>
+
 /* Convenience macros to test the version of gcc. */
 #undef __GNUC_PREREQ
 #if defined __GNUC__ && defined __GNUC_MINOR__
@@ -161,7 +163,7 @@
 # define bswap_32 __bswap32
 # define bswap_16 __bswap16
 # define __BIG_ENDIAN__ (_BYTE_ORDER == _BIG_ENDIAN)
-#elif !defined __APPLE__
+#elif !(defined __APPLE__ || defined BSD)
 # include <byteswap.h>
 # include <endian.h>
 #endif
@@ -230,7 +232,7 @@
 /* ---- Compiler dependent settings ------------------------- */
 
 #if (defined __digital__ && defined __unix__) \
- || defined __APPLE__ || defined __FreeBSD__
+ || defined __APPLE__ || defined __FreeBSD__ || defined BSD
 # undef HAVE_MNTENT_H
 # undef HAVE_SYS_STATFS_H
 #else