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