Merge pull request #46 from snar/freebsd-endian
This commit is contained in:
commit
4a39ec4251
1 changed files with 3 additions and 1 deletions
|
|
@ -15,8 +15,10 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#if defined(unix) && !defined(__APPLE__)
|
#if defined(unix) && !defined(__APPLE__) && !defined(__FreeBSD__)
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
|
#elif defined(__FreeBSD__)
|
||||||
|
#include <sys/endian.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ssize_t is a POSIX type, not an ISO C one...
|
/* ssize_t is a POSIX type, not an ISO C one...
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue