detect GNU/kFreeBSD

see https://lists.debian.org/debian-bsd/2010/01/msg00125.html
This commit is contained in:
Kill Your TV 2014-09-01 21:15:24 +00:00
parent da9c281d9a
commit 39f5a3a494

View File

@ -1,7 +1,7 @@
#ifndef I2PENDIAN_H__ #ifndef I2PENDIAN_H__
#define I2PENDIAN_H__ #define I2PENDIAN_H__
#ifdef __linux__ #if defined(__linux__) || defined(__FreeBSD_kernel__)
#include <endian.h> #include <endian.h>
#elif __FreeBSD__ #elif __FreeBSD__
#include <sys/endian.h> #include <sys/endian.h>