mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Prefix zfs internal endian checks with _ZFS
FreeBSD defines _BIG_ENDIAN BIG_ENDIAN _LITTLE_ENDIAN LITTLE_ENDIAN on every architecture. Trying to do cross builds whilst hiding this from ZFS has proven extremely cumbersome. Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10621
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
#define UCONV_OUT_ENDIAN_MASKS (UCONV_OUT_BIG_ENDIAN | UCONV_OUT_LITTLE_ENDIAN)
|
||||
|
||||
/* Native and reversed endian macros. */
|
||||
#ifdef _BIG_ENDIAN
|
||||
#ifdef _ZFS_BIG_ENDIAN
|
||||
#define UCONV_IN_NAT_ENDIAN UCONV_IN_BIG_ENDIAN
|
||||
#define UCONV_IN_REV_ENDIAN UCONV_IN_LITTLE_ENDIAN
|
||||
#define UCONV_OUT_NAT_ENDIAN UCONV_OUT_BIG_ENDIAN
|
||||
|
||||
Reference in New Issue
Block a user