Use sys/endian.h on FreeBSD

This commit is contained in:
Raivo Hool 2011-02-23 20:44:49 +01:00 committed by Julien BLACHE
parent 86a90fe81f
commit 1a11efec58

View File

@ -46,7 +46,13 @@
#include <netdb.h>
#include <fcntl.h>
#include <time.h>
#include <endian.h>
#if defined(__linux__) || defined(__GLIBC__)
# include <endian.h>
# include <byteswap.h>
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
# include <sys/endian.h>
#endif
#include <arpa/inet.h>
#include <net/if.h>