summaryrefslogtreecommitdiff
path: root/package/toybox/patches/patch-lib_portability_h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-25 21:00:47 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-25 21:01:32 +0200
commitd8a3cfe3d7691fd44ee341b4753c602c10b7db7b (patch)
tree11e42a70ceca0932cf08726b8c214b76a7b02cd4 /package/toybox/patches/patch-lib_portability_h
parent0fc7f3ed051d53814504d4a89d8ad6ccd0009f7a (diff)
toybox: new package
Diffstat (limited to 'package/toybox/patches/patch-lib_portability_h')
-rw-r--r--package/toybox/patches/patch-lib_portability_h22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/toybox/patches/patch-lib_portability_h b/package/toybox/patches/patch-lib_portability_h
new file mode 100644
index 000000000..25c24d19c
--- /dev/null
+++ b/package/toybox/patches/patch-lib_portability_h
@@ -0,0 +1,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