aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2009-10-25 20:42:34 +0000
committerFabian Groffen <grobian@gentoo.org>2009-10-25 20:42:34 +0000
commit673ed5670047e6bd4e5ba8fd66a5e0527b4d62aa (patch)
tree38f8f363d87a0713a567a8bcde72f8e3526e7ce0 /porting.h
parentA little protection against invalid files. This needs more work to be (diff)
downloadpax-utils-673ed5670047e6bd4e5ba8fd66a5e0527b4d62aa.tar.gz
pax-utils-673ed5670047e6bd4e5ba8fd66a5e0527b4d62aa.tar.bz2
pax-utils-673ed5670047e6bd4e5ba8fd66a5e0527b4d62aa.zip
allow pax-utils to detect endianness on HP-UX, patch by Michael Haubenwallner
Diffstat (limited to 'porting.h')
-rw-r--r--porting.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/porting.h b/porting.h
index a516c5e..d4264f6 100644
--- a/porting.h
+++ b/porting.h
@@ -1,7 +1,7 @@
/*
* Copyright 2005-2007 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/porting.h,v 1.36 2008/12/30 12:30:52 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/porting.h,v 1.37 2009/10/25 20:42:34 grobian Exp $
*
* Copyright 2005-2007 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org>
@@ -140,7 +140,7 @@
# define ELF_DATA ELFDATA2MSB
# elif defined(_LITTLE_ENDIAN)
# define ELF_DATA ELFDATA2LSB
-# elif defined(_BIG_ENDIAN)
+# elif defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
# define ELF_DATA ELFDATA2MSB
# else
# error "no idea what the native byte order is"