summaryrefslogtreecommitdiff
path: root/net/arla/patches/patch-br
blob: 5f30b285bd0c782e7bd135d80c8b57665ce6fc1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$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