aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/lib/libctf/common
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2014-09-17 00:54:00 +0000
committerMark Johnston <markj@FreeBSD.org>2014-09-17 00:54:00 +0000
commit6574b8ed19b093f0af09501d2c9676c28993cb97 (patch)
treef5a981a95d55264ecc61b6fb7ddb4bfd57473ae6 /cddl/contrib/opensolaris/lib/libctf/common
parenta5ddd965e0766a79222a12fa96288a1a78d6cc29 (diff)
downloadsrc-6574b8ed19b093f0af09501d2c9676c28993cb97.tar.gz
src-6574b8ed19b093f0af09501d2c9676c28993cb97.zip
Fix some incorrect endianness checks.
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=271695
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libctf/common')
-rw-r--r--cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c b/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c
index 0df44cfda938..58222670f4ff 100644
--- a/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c
+++ b/cddl/contrib/opensolaris/lib/libctf/common/ctf_lib.c
@@ -274,7 +274,7 @@ ctf_fdopen(int fd, int *errp)
*/
if (nbytes >= (ssize_t) sizeof (Elf32_Ehdr) &&
bcmp(&hdr.e32.e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) {
-#ifdef _BIG_ENDIAN
+#if BYTE_ORDER == _BIG_ENDIAN
uchar_t order = ELFDATA2MSB;
#else
uchar_t order = ELFDATA2LSB;