View | Details | Raw Unified | Return to bug 209100
Collapse All | Expand All

(-)sysutils/afflib/files/patch-lib_qemu_bswap.h (+20 lines)
Line 0 Link Here
1
--- lib/qemu/bswap.h.orig	2014-11-08 06:32:35 UTC
2
+++ lib/qemu/bswap.h
3
@@ -5,6 +5,9 @@
4
 
5
 #include <inttypes.h>
6
 
7
+#ifdef __FreeBSD__
8
+#include <sys/endian.h>
9
+#else
10
 #ifdef HAVE_BYTESWAP_H
11
 #include <byteswap.h>
12
 #else
13
@@ -57,6 +60,7 @@ static inline uint64_t bswap64(uint64_t 
14
 {
15
     return bswap_64(x);
16
 }
17
+#endif
18
 
19
 static inline void bswap16s(uint16_t *s)
20
 {

Return to bug 209100