patch-hive_c 448 B

123456789101112131415161718
  1. $OpenBSD: patch-hive_c,v 1.3 2015/05/01 17:40:58 ajacoutot Exp $
  2. --- hive.c.orig Fri Apr 20 14:27:00 2012
  3. +++ hive.c Sat Apr 21 17:04:10 2012
  4. @@ -30,7 +30,13 @@
  5. #ifdef BYTE_ORDER
  6. #if BYTE_ORDER == LITTLE_ENDIAN
  7. #elif BYTE_ORDER == BIG_ENDIAN
  8. +#ifndef __OpenBSD__
  9. #include <byteswap.h>
  10. +#else
  11. +#include <endian.h>
  12. +#define __bswap_32 __swap32
  13. +#define __bswap_16 __swap16
  14. +#endif
  15. #else
  16. #warning "Doesn't define a standard ENDIAN type"
  17. #endif