33 lines
667 B
Text
33 lines
667 B
Text
$NetBSD: patch-br,v 1.4 2007/05/13 20:59:48 agc Exp $
|
|
|
|
--- lib/roken/roken.h.in 2007/05/13 20:23:17 1.1
|
|
+++ lib/roken/roken.h.in 2007/05/13 20:25:52
|
|
@@ -53,6 +53,9 @@
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
#include <sys/types.h>
|
|
#endif
|
|
+#ifdef HAVE_SYS_BSWAP_H
|
|
+#include <sys/bswap.h>
|
|
+#endif
|
|
#ifdef HAVE_SYS_BITYPES_H
|
|
#include <sys/bitypes.h>
|
|
#endif
|
|
@@ -371,12 +374,16 @@
|
|
void pidfile (const char*);
|
|
#endif
|
|
|
|
-#ifndef HAVE_BSWAP32
|
|
+#ifndef bswap32
|
|
+# ifndef HAVE_BSWAP32
|
|
unsigned int bswap32(unsigned int);
|
|
+# endif
|
|
#endif
|
|
|
|
-#ifndef HAVE_BSWAP16
|
|
+#ifndef bswap16
|
|
+# ifndef HAVE_BSWAP16
|
|
unsigned short bswap16(unsigned short);
|
|
+# endif
|
|
#endif
|
|
|
|
#ifndef HAVE_FLOCK
|