Use <byteswap.h> when using glibc, not just on linux
authorJulien Cristau <jcristau@debian.org>
Tue, 19 Feb 2008 13:26:54 +0000 (14:26 +0100)
committerJulien Cristau <jcristau@debian.org>
Tue, 19 Feb 2008 13:47:27 +0000 (14:47 +0100)
This fixes the build on GNU/kFreeBSD.

src/common_interface.c

index 98f0e91..7fae277 100644 (file)
@@ -36,7 +36,7 @@
 #include "pciaccess.h"
 #include "pciaccess_private.h"
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
 #include <byteswap.h>
 
 #if __BYTE_ORDER == __BIG_ENDIAN