aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/lz4.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/zfs/lz4.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/zfs/lz4.c')
-rw-r--r--module/zfs/lz4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/lz4.c b/module/zfs/lz4.c
index 52e527b02..4b46e6948 100644
--- a/module/zfs/lz4.c
+++ b/module/zfs/lz4.c
@@ -208,7 +208,7 @@ lz4_decompress_zfs(void *s_start, void *d_start, size_t s_len,
* Little Endian or Big Endian?
* Note: overwrite the below #define if you know your architecture endianness.
*/
-#if defined(_BIG_ENDIAN)
+#if defined(_ZFS_BIG_ENDIAN)
#define LZ4_BIG_ENDIAN 1
#else
/*