17 lines
526 B
Text
17 lines
526 B
Text
|
$NetBSD: patch-cq,v 1.1.1.1 2007/06/14 19:39:46 bouyer Exp $
|
||
|
|
||
|
--- ../xen/common/libelf/libelf-private.h.orig 2007-05-27 15:13:03.000000000 +0200
|
||
|
+++ ../xen/common/libelf/libelf-private.h 2007-05-27 15:14:20.000000000 +0200
|
||
|
@@ -33,6 +33,11 @@
|
||
|
#define bswap_16(x) BSWAP_16(x)
|
||
|
#define bswap_32(x) BSWAP_32(x)
|
||
|
#define bswap_64(x) BSWAP_64(x)
|
||
|
+#elif defined(__NetBSD__)
|
||
|
+#include <sys/bswap.h>
|
||
|
+#define bswap_16(x) bswap16(x)
|
||
|
+#define bswap_32(x) bswap32(x)
|
||
|
+#define bswap_64(x) bswap64(x)
|
||
|
#else
|
||
|
#include <byteswap.h>
|
||
|
#endif
|