summaryrefslogtreecommitdiffstats
path: root/module/unicode/uconv.c
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-07-28 13:02:49 -0700
committerGitHub <[email protected]>2020-07-28 13:02:49 -0700
commit5678d3f59389a241c8d9c032513c38209bb53e70 (patch)
treeb25aa376cb42cc0bb173ab1250e27dccc98b4de7 /module/unicode/uconv.c
parent3eabed74c0fca5dd9f96d2cca13c4a1a16d5c094 (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #10621
Diffstat (limited to 'module/unicode/uconv.c')
-rw-r--r--module/unicode/uconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/unicode/uconv.c b/module/unicode/uconv.c
index d812d5f96..fe84979d0 100644
--- a/module/unicode/uconv.c
+++ b/module/unicode/uconv.c
@@ -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