diff options
author | jb <jb@FreeBSD.org> | 2007-11-28 22:12:21 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2007-11-28 22:12:21 +0000 |
commit | 7d2b6299408eedcbb47579e48bf8b451899218e0 (patch) | |
tree | 4681a8957efbfd5a5c800f13e471e7abc518f7c5 /sys/cddl/contrib/opensolaris/common | |
parent | ef879fff8b16037b4945ad37d4a5a98054fbae6c (diff) | |
download | FreeBSD-src-7d2b6299408eedcbb47579e48bf8b451899218e0.zip FreeBSD-src-7d2b6299408eedcbb47579e48bf8b451899218e0.tar.gz |
Check endianness the FreeBSD way.
Diffstat (limited to 'sys/cddl/contrib/opensolaris/common')
-rw-r--r-- | sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c b/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c index a1e6190..d3d5bed 100644 --- a/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c +++ b/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c @@ -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; |