Fix FreeBSD builds
This commit is contained in:
parent
9053ebe6ee
commit
86bee96031
1 changed files with 3 additions and 1 deletions
|
|
@ -15,8 +15,10 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(unix) && !defined(__APPLE__)
|
||||
#if defined(unix) && !defined(__APPLE__) && !defined(__FreeBSD__)
|
||||
#include <endian.h>
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <sys/endian.h>
|
||||
#endif
|
||||
|
||||
/* ssize_t is a POSIX type, not an ISO C one...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue