xref: /OK3568_Linux_fs/buildroot/package/perl-sys-cpu/0001-remove-extraneous-include.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Drop <sys/unistd.h> include
2
3<sys/unistd.h> does not exist in musl or uClibc, so including it
4causes a build failure. In glibc, it simply redirects to <unistd.h>,
5so we can safely drop the inclusion of <sys/unistd.h>
6
7Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
8
9Index: b/CPU.xs
10===================================================================
11--- a/CPU.xs
12+++ b/CPU.xs
13@@ -24,7 +24,6 @@
14  #include <winreg.h>
15 #else                /* other (try unix) */
16  #include <unistd.h>
17- #include <sys/unistd.h>
18 #endif
19 #if defined(__sun) || defined(__sun__)
20  #include <sys/processor.h>
21