mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-27 10:24:22 +03:00
Correctly handle the x32 ABI
__x86_64__ && _ILP32 => don't forcibly define _LP64 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@gmail.com> Closes #10357 Closes #844
This commit is contained in:
parent
50ff632787
commit
6059f3a1f6
@ -40,9 +40,13 @@
|
||||
#define __x86
|
||||
#endif
|
||||
|
||||
#if defined(_ILP32)
|
||||
/* x32-specific defines; careful to *not* define _LP64 here */
|
||||
#else
|
||||
#if !defined(_LP64)
|
||||
#define _LP64
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define _ALIGNMENT_REQUIRED 1
|
||||
|
||||
@ -216,7 +220,7 @@
|
||||
#else
|
||||
/*
|
||||
* Currently supported:
|
||||
* x86_64, i386, arm, powerpc, s390, sparc, mips, and RV64G
|
||||
* x86_64, x32, i386, arm, powerpc, s390, sparc, mips, and RV64G
|
||||
*/
|
||||
#error "Unsupported ISA type"
|
||||
#endif
|
||||
|
@ -46,9 +46,13 @@ extern "C" {
|
||||
#define __x86
|
||||
#endif
|
||||
|
||||
#if defined(_ILP32)
|
||||
/* x32-specific defines; careful to *not* define _LP64 here */
|
||||
#else
|
||||
#if !defined(_LP64)
|
||||
#define _LP64
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(_LITTLE_ENDIAN)
|
||||
#define _LITTLE_ENDIAN
|
||||
@ -214,7 +218,7 @@ extern "C" {
|
||||
#else
|
||||
/*
|
||||
* Currently supported:
|
||||
* x86_64, i386, arm, powerpc, s390, sparc, mips, and RV64G
|
||||
* x86_64, x32, i386, arm, powerpc, s390, sparc, mips, and RV64G
|
||||
*/
|
||||
#error "Unsupported ISA type"
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user