$OpenBSD: patch-include_rio_internal_h,v 1.2 2010/05/20 09:58:36 espie Exp $ --- include/rio_internal.h.orig Tue Jan 20 08:41:20 2004 +++ include/rio_internal.h Wed May 19 19:19:24 2010 @@ -547,6 +547,8 @@ unsigned int crc32_rio (unsigned char *, u_int32_t bswap_32(u_int32_t); #elif defined (__NetBSD__) #define bswap_32(x) bswap32(x) +#elif defined (__OpenBSD__) +#define bswap_32(x) swap32(x) #endif #ifndef HAVE_LIBGEN_H @@ -563,10 +565,14 @@ char *basename(char *x); #include -#else +#elif defined (__OpenBSD__) #include + +#else + #include +#include #endif