summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-aa
blob: 7d077c0e669f3760512cdaafa65ba028f575ec01 (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
34
35
36
37
38
39
40
$NetBSD: patch-aa,v 1.1.1.1 2004/11/09 13:05:33 xtraeme Exp $

--- bswap.h.orig	2004-07-10 21:20:09.000000000 +0300
+++ bswap.h
@@ -4,11 +4,13 @@
 #include "config-host.h"
 
 #include <inttypes.h>
+#include <sys/types.h>
+#include <machine/bswap.h>
 
 #ifdef HAVE_BYTESWAP_H
 #include <byteswap.h>
 #else
-
+/*
 #define bswap_16(x) \
 ({ \
 	uint16_t __x = (x); \
@@ -40,9 +42,9 @@
 		(uint64_t)(((uint64_t)(__x) & (uint64_t)0x00ff000000000000ULL) >> 40) | \
 		(uint64_t)(((uint64_t)(__x) & (uint64_t)0xff00000000000000ULL) >> 56) )); \
 })
-
+*/
 #endif /* !HAVE_BYTESWAP_H */
-
+/*
 static inline uint16_t bswap16(uint16_t x)
 {
     return bswap_16(x);
@@ -57,7 +59,7 @@ static inline uint64_t bswap64(uint64_t 
 {
     return bswap_64(x);
 }
-
+*/
 static inline void bswap16s(uint16_t *s)
 {
     *s = bswap16(*s);