Pull in <machine/endian.h> on NetBSD instead of hardcoding to
big-endian.
This commit is contained in:
parent
eb01b7b0b4
commit
74b0c97cb7
|
@ -29,6 +29,8 @@
|
|||
|
||||
#ifdef __linux__
|
||||
#include <endian.h>
|
||||
#elif __NetBSD__
|
||||
#include <machine/endian.h>
|
||||
#else
|
||||
#define LITTLE_ENDIAN 1234
|
||||
#define BIG_ENDIAN 4321
|
||||
|
|
Loading…
Reference in New Issue