Use sys/endian.h on FreeBSD

This commit is contained in:
Julien BLACHE 2010-01-09 13:42:59 +01:00
parent 99df67b53c
commit 3724f943b9

View File

@ -29,9 +29,14 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdint.h>
#if defined(__linux__)
# include <endian.h>
# include <byteswap.h>
#include <stdint.h>
#elif defined(__FreeBSD__)
# include <sys/endian.h>
#endif
#include <event.h>
#include "evhttp/evhttp.h"