patch-include_platform_h 1014 B

123456789101112131415161718192021222324252627282930
  1. diff -Nur busybox-1.17.0.orig/include/platform.h busybox-1.17.0/include/platform.h
  2. --- busybox-1.17.0.orig/include/platform.h 2010-06-24 04:40:43.000000000 +0200
  3. +++ busybox-1.17.0/include/platform.h 2010-07-08 12:15:16.099001527 +0200
  4. @@ -20,6 +20,8 @@
  5. #define HAVE_STRSIGNAL 1
  6. #define HAVE_VASPRINTF 1
  7. +#include <sys/param.h>
  8. +
  9. /* Convenience macros to test the version of gcc. */
  10. #undef __GNUC_PREREQ
  11. #if defined __GNUC__ && defined __GNUC_MINOR__
  12. @@ -161,7 +163,7 @@
  13. # define bswap_32 __bswap32
  14. # define bswap_16 __bswap16
  15. # define __BIG_ENDIAN__ (_BYTE_ORDER == _BIG_ENDIAN)
  16. -#elif !defined __APPLE__
  17. +#elif !(defined __APPLE__ || defined BSD)
  18. # include <byteswap.h>
  19. # include <endian.h>
  20. #endif
  21. @@ -230,7 +232,7 @@
  22. /* ---- Compiler dependent settings ------------------------- */
  23. #if (defined __digital__ && defined __unix__) \
  24. - || defined __APPLE__ || defined __FreeBSD__
  25. + || defined __APPLE__ || defined __FreeBSD__ || defined BSD
  26. # undef HAVE_MNTENT_H
  27. # undef HAVE_SYS_STATFS_H
  28. #else