Merge branch 'linux-libspl' into refs/top-bases/linux-zfs-branch

This commit is contained in:
Brian Behlendorf 2009-07-14 15:38:46 -07:00
commit 5a3e63ff19
1 changed files with 20 additions and 0 deletions

View File

@ -50,6 +50,10 @@ extern "C" {
#define _LP64
#endif
#if !defined(_LITTLE_ENDIAN)
#define _LITTLE_ENDIAN
#endif
#define _SUNOS_VTOC_16
/* i386 arch specific defines */
@ -67,6 +71,10 @@ extern "C" {
#define _ILP32
#endif
#if !defined(_LITTLE_ENDIAN)
#define _LITTLE_ENDIAN
#endif
#define _SUNOS_VTOC_16
/* powerpc arch specific defines */
@ -88,6 +96,10 @@ extern "C" {
#endif
#endif
#if !defined(_BIG_ENDIAN)
#define _BIG_ENDIAN
#endif
#define _SUNOS_VTOC_16
#else /* Currently only x86_64, i386, and powerpc arches supported */
@ -98,6 +110,14 @@ extern "C" {
#error "Both _ILP32 and _LP64 are defined"
#endif
#if defined(_LITTLE_ENDIAN) && defined(_BIG_ENDIAN)
#error "Both _LITTLE_ENDIAN and _BIG_ENDIAN are defined"
#endif
#if !defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)
#error "Neither _LITTLE_ENDIAN nor _BIG_ENDIAN are defined"
#endif
#ifdef __cplusplus
}
#endif