summaryrefslogtreecommitdiff
path: root/package/busybox/patches/patch-include_libbb_h
blob: 4f08ed4e51fd00aa9a2611ababce1fab8e6a783f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -Nur busybox-1.17.0.orig/include/libbb.h busybox-1.17.0/include/libbb.h
--- busybox-1.17.0.orig/include/libbb.h	2010-07-04 15:32:24.000000000 +0200
+++ busybox-1.17.0/include/libbb.h	2010-07-08 12:27:04.531002165 +0200
@@ -40,6 +40,9 @@
 /* Try to pull in PATH_MAX */
 #include <limits.h>
 #include <sys/param.h>
+
+#if !(defined __APPLE__ || defined __FreeBSD__ || defined __MirBSD__ )
+
 #ifdef HAVE_MNTENT_H
 #include <mntent.h>
 #endif
@@ -52,6 +55,9 @@
 #include <selinux/flask.h>
 #include <selinux/av_permissions.h>
 #endif
+
+#endif
+
 #if ENABLE_LOCALE_SUPPORT
 # include <locale.h>
 #else