summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-02-19 14:26:54 +0100
committerJulien Cristau <jcristau@debian.org>2008-02-19 14:47:27 +0100
commit25de45d250811474e86cb9a09caf258aef699196 (patch)
treede1d177bb0fb56f54ddfc9491ce5a5bac5312173
parentceda00d33fbf3d491e3f7e53302acd2b8b74a305 (diff)
Use <byteswap.h> when using glibc, not just on linux
This fixes the build on GNU/kFreeBSD.
-rw-r--r--src/common_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common_interface.c b/src/common_interface.c
index 98f0e91..7fae277 100644
--- a/src/common_interface.c
+++ b/src/common_interface.c
@@ -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