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