mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 11:18:52 +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:
@@ -1233,7 +1233,7 @@ const aes_impl_ops_t aes_generic_impl = {
|
||||
.encrypt = &aes_generic_encrypt,
|
||||
.decrypt = &aes_generic_decrypt,
|
||||
.is_supported = &aes_generic_will_work,
|
||||
#if defined(_LITTLE_ENDIAN)
|
||||
#if defined(_ZFS_LITTLE_ENDIAN)
|
||||
.needs_byteswap = B_TRUE,
|
||||
#else
|
||||
.needs_byteswap = B_FALSE,
|
||||
|
||||
Reference in New Issue
Block a user