add freebsd endian.h

This commit is contained in:
qiukeren 2015-12-22 01:41:21 +08:00
parent 52b9f882f4
commit 3beb9cb761
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#if HAVE_ENDIAN_H
#if defined(__MACH__) && defined(__APPLE__)
#include <machine/endian.h>
#elif defined(__FreeBSD__)
#include <sys/endian.h>
#else
#include <endian.h>
#endif