BSD: Improve compatibility with BSD family operating systems (#137)
This commit is contained in:
parent
4e77e6caef
commit
1dcb3cdbb0
2 changed files with 3 additions and 1 deletions
|
@ -23,6 +23,8 @@ extern const uint32_t Crc32Lookup[MaxSlice][256];
|
|||
// defines __BYTE_ORDER as __LITTLE_ENDIAN or __BIG_ENDIAN
|
||||
#if defined(__APPLE__) || defined(HAVE_LIBNX)
|
||||
#include <machine/endian.h>
|
||||
#elif defined (__FreeBSD__) || defined(__DragonFly__)
|
||||
#include <sys/endian.h>
|
||||
#else
|
||||
#include <endian.h>
|
||||
#endif
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#if !(defined(__MACH__) || defined(__FreeBSD__))
|
||||
#if !(defined(__MACH__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue