0001-remove-extraneous-include.patch 603 B

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