patch-include_squid_endian_h 491 B

123456789101112131415
  1. --- squid-3.1.4.orig/include/squid_endian.h 2010-05-30 15:21:11.000000000 +0200
  2. +++ squid-3.1.4/include/squid_endian.h 2010-07-31 14:29:02.000000000 +0200
  3. @@ -65,9 +65,12 @@
  4. *
  5. * Some systems define htobe16()/be16toh() and friends in <sys/endian.h>.
  6. */
  7. +#include <sys/param.h>
  8. +#if !defined(BSD)
  9. #if HAVE_BYTESWAP_H
  10. # include <byteswap.h>
  11. #endif /* HAVE_BYTESWAP_H */
  12. +#endif
  13. #ifdef HAVE_MACHINE_BYTE_SWAP_H
  14. # include <machine/byte_swap.h>
  15. #endif /* HAVE_MACHINE_BYTE_SWAP_H */