Pull in <machine/endian.h> on NetBSD instead of hardcoding to

big-endian.
This commit is contained in:
nathanw 2005-09-28 17:27:26 +00:00
parent eb01b7b0b4
commit 74b0c97cb7
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@
#ifdef __linux__
#include <endian.h>
#elif __NetBSD__
#include <machine/endian.h>
#else
#define LITTLE_ENDIAN 1234
#define BIG_ENDIAN 4321