patch-include_platform_h 994 B

123456789101112131415161718192021222324252627282930
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- busybox-1.13.4.orig/include/platform.h 2008-11-09 18:28:17.000000000 +0100
  3. +++ busybox-1.13.4/include/platform.h 2009-05-08 22:48:50.000000000 +0200
  4. @@ -116,7 +116,7 @@
  5. # include <sex.h>
  6. # define __BIG_ENDIAN__ (BYTE_ORDER == BIG_ENDIAN)
  7. # define __BYTE_ORDER BYTE_ORDER
  8. -#elif !defined __APPLE__
  9. +#elif !(defined __APPLE__ || defined __FreeBSD__)
  10. # include <byteswap.h>
  11. # include <endian.h>
  12. #endif
  13. @@ -162,7 +162,7 @@
  14. /* ---- Networking ------------------------------------------ */
  15. -#ifndef __APPLE__
  16. +#if !(defined __APPLE__ || defined __FreeBSD__)
  17. # include <arpa/inet.h>
  18. # ifndef __socklen_t_defined
  19. typedef int socklen_t;
  20. @@ -210,7 +210,7 @@ __extension__ typedef unsigned long long
  21. #define HAVE_FEATURES_H
  22. #include <stdint.h>
  23. #define HAVE_STDINT_H
  24. -#elif !defined __APPLE__
  25. +#elif !(defined __APPLE__ || defined __FreeBSD__)
  26. /* Largest integral types. */
  27. #if __BIG_ENDIAN__
  28. typedef long intmax_t;