Check endianness the FreeBSD way.
This commit is contained in:
parent
47b288c152
commit
da9085a1c0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174047
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user