summaryrefslogtreecommitdiffstats
path: root/package/perl-sys-cpu/0001-remove-extraneous-include.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/perl-sys-cpu/0001-remove-extraneous-include.patch')
-rw-r--r--package/perl-sys-cpu/0001-remove-extraneous-include.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/perl-sys-cpu/0001-remove-extraneous-include.patch b/package/perl-sys-cpu/0001-remove-extraneous-include.patch
new file mode 100644
index 0000000000..eb7d8f76a8
--- /dev/null
+++ b/package/perl-sys-cpu/0001-remove-extraneous-include.patch
@@ -0,0 +1,20 @@
+Drop <sys/unistd.h> include
+
+<sys/unistd.h> does not exist in musl or uClibc, so including it
+causes a build failure. In glibc, it simply redirects to <unistd.h>,
+so we can safely drop the inclusion of <sys/unistd.h>
+
+Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
+
+Index: b/CPU.xs
+===================================================================
+--- a/CPU.xs
++++ b/CPU.xs
+@@ -24,7 +24,6 @@
+ #include <winreg.h>
+ #else /* other (try unix) */
+ #include <unistd.h>
+- #include <sys/unistd.h>
+ #endif
+ #if defined(__sun) || defined(__sun__)
+ #include <sys/processor.h>
OpenPOWER on IntegriCloud