29 lines
661 B
Plaintext
29 lines
661 B
Plaintext
$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 <machine/endian.h>
|
|
|
|
-#else
|
|
+#elif defined (__OpenBSD__)
|
|
|
|
#include <sys/endian.h>
|
|
+
|
|
+#else
|
|
+
|
|
#include <sys/bswap.h>
|
|
+#include <sys/endian.h>
|
|
|
|
#endif
|
|
|