summaryrefslogtreecommitdiff
path: root/sysutils/xentools3-hvm/patches/patch-as
blob: 6f5f4c0ca1067626a1047bfd86449ddd49439a4c (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
$NetBSD: patch-as,v 1.1.1.1 2007/06/14 19:42:12 bouyer Exp $

--- ioemu/bswap.h.orig	2006-04-13 19:48:38.000000000 +0200
+++ ioemu/bswap.h
@@ -5,6 +5,12 @@
 
 #include <inttypes.h>
 
+#ifdef HAVE_MACHINE_BSWAP_H
+#include <sys/endian.h>
+#include <sys/types.h>
+#include <machine/bswap.h>
+#else
+
 #ifdef HAVE_BYTESWAP_H
 #include <byteswap.h>
 #else
@@ -58,6 +64,8 @@ static inline uint64_t bswap64(uint64_t 
     return bswap_64(x);
 }
 
+#endif /* ! HAVE_MACHINE_BSWAP_H */
+
 static inline void bswap16s(uint16_t *s)
 {
     *s = bswap16(*s);