patch-lib_portability_h 645 B

12345678910111213141516171819202122
  1. --- toybox-0.7.1.orig/lib/portability.h 2016-06-01 00:33:23.000000000 +0200
  2. +++ toybox-0.7.1/lib/portability.h 2016-10-16 12:32:11.000000000 +0200
  3. @@ -22,7 +22,9 @@
  4. // This isn't in the spec, but it's how we determine what libc we're using.
  5. +#ifndef __APPLE__
  6. #include <features.h>
  7. +#endif
  8. // Types various replacement prototypes need
  9. #include <sys/types.h>
  10. @@ -211,7 +213,9 @@ ssize_t getline(char **lineptr, size_t *
  11. // Linux headers not listed by POSIX or LSB
  12. #include <sys/mount.h>
  13. +#ifndef __APPLE__
  14. #include <sys/swap.h>
  15. +#endif
  16. // Android is missing some headers and functions
  17. // "generated/config.h" is included first