summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-aa
blob: 4580f835d37c110d43e2c78f69048c0c0be28183 (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-aa,v 1.2 2004/11/15 11:35:30 xtraeme Exp $

--- bswap.h.orig	2004-11-15 12:19:31.000000000 +0100
+++ bswap.h	2004-11-15 12:20:25.000000000 +0100
@@ -5,6 +5,12 @@
 
 #include <inttypes.h>
 
+#ifdef _BSD
+#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 @@
     return bswap_64(x);
 }
 
+#endif /* ! _BSD */
+
 static inline void bswap16s(uint16_t *s)
 {
     *s = bswap16(*s);