$OpenBSD: patch-hive_c,v 1.2 2012/04/21 15:16:29 benoit 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 +#else +#include +#define __bswap_32 __swap32 +#define __bswap_16 __swap16 +#endif #else #warning "Doesn't define a standard ENDIAN type" #endif