diff options
author | Ned Ludd <solar@gentoo.org> | 2007-04-08 19:14:31 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2007-04-08 19:14:31 +0000 |
commit | 2c35dea148c8226ba71f4adc86b1bdd72e33e468 (patch) | |
tree | 2171f2b537d72ddba75678f370b238c7fa0bd0e1 /porting.h | |
parent | - note OE link (diff) | |
download | pax-utils-2c35dea148c8226ba71f4adc86b1bdd72e33e468.tar.gz pax-utils-2c35dea148c8226ba71f4adc86b1bdd72e33e468.tar.bz2 pax-utils-2c35dea148c8226ba71f4adc86b1bdd72e33e468.zip |
- make things a tad more portable to sparc and darwin
Diffstat (limited to 'porting.h')
-rw-r--r-- | porting.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* * Copyright 2005-2006 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/porting.h,v 1.24 2007/01/18 08:12:55 solar Exp $ + * $Header: /var/cvsroot/gentoo-projects/pax-utils/porting.h,v 1.25 2007/04/08 19:14:31 solar Exp $ * * Copyright 2005-2006 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2006 Mike Frysinger - <vapier@gentoo.org> @@ -41,6 +41,8 @@ # include <byteswap.h> #elif defined(__FreeBSD__) # include <sys/endian.h> +#elif defined(__MACH__) +# include <machine/endian.h> #endif #if defined(__GLIBC__) || defined(__UCLIBC__) @@ -53,7 +55,7 @@ # include <elf-hints.h> # define __PAX_UTILS_DEFAULT_LD_CACHE_CONFIG _PATH_ELF_HINTS #else -# undef __PAX_UTILS_DEFAULT_LD_CACHE_CONFIG +# define __PAX_UTILS_DEFAULT_LD_CACHE_CONFIG "" #endif /* bounds checking code will fart on free(NULL) even though that @@ -120,6 +122,10 @@ # define __PAX_UTILS_BO LITTLE_ENDIAN # elif defined(WORDS_BIGENDIAN) # define __PAX_UTILS_BO BIG_ENDIAN +# elif defined( __sun__) && defined(i386) +# define __PAX_UTILS_BO LITTLE_ENDIAN +# elif defined( __sun__) && defined(sparc) +# define __PAX_UTILS_BO BIG_ENDIAN # else # error "no idea what the native byte order is" # endif |