summaryrefslogtreecommitdiff
path: root/package/toybox/patches/patch-lib_portability_h
blob: 25c24d19c44e6db37cc778994f4a40f79a6f3327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- toybox-0.7.1.orig/lib/portability.h	2016-06-01 00:33:23.000000000 +0200
+++ toybox-0.7.1/lib/portability.h	2016-10-16 12:32:11.000000000 +0200
@@ -22,7 +22,9 @@
 
 // This isn't in the spec, but it's how we determine what libc we're using.
 
+#ifndef __APPLE__
 #include <features.h>
+#endif
 
 // Types various replacement prototypes need
 #include <sys/types.h>
@@ -211,7 +213,9 @@ ssize_t getline(char **lineptr, size_t *
 
 // Linux headers not listed by POSIX or LSB
 #include <sys/mount.h>
+#ifndef __APPLE__
 #include <sys/swap.h>
+#endif
 
 // Android is missing some headers and functions
 // "generated/config.h" is included first