Use glibc endianness-related headers if available

BSD headers aren't working properly on kFreeBSD, so use the glibc ones.
This commit is contained in:
Julien BLACHE 2010-01-17 10:47:46 +01:00
parent bf2c2b68c0
commit dd1712abdc

View File

@ -31,7 +31,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <stdint.h> #include <stdint.h>
#if defined(__linux__) #if defined(__linux__) || defined(__GLIBC__)
# include <endian.h> # include <endian.h>
# include <byteswap.h> # include <byteswap.h>
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)