Check endianness the FreeBSD way.

This commit is contained in:
John Birrell 2007-11-28 22:12:21 +00:00
parent 47b288c152
commit da9085a1c0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174047
2 changed files with 2 additions and 2 deletions

View File

@ -1918,7 +1918,7 @@ nvlist_common(nvlist_t *nvl, char *buf, size_t *buflen, int encoding,
int err = 0;
nvstream_t nvs;
int nvl_endian;
#ifdef _LITTLE_ENDIAN
#if BYTE_ORDER == _LITTLE_ENDIAN
int host_endian = 1;
#else
int host_endian = 0;

View File

@ -1918,7 +1918,7 @@ nvlist_common(nvlist_t *nvl, char *buf, size_t *buflen, int encoding,
int err = 0;
nvstream_t nvs;
int nvl_endian;
#ifdef _LITTLE_ENDIAN
#if BYTE_ORDER == _LITTLE_ENDIAN
int host_endian = 1;
#else
int host_endian = 0;