summaryrefslogtreecommitdiffstats
path: root/lib/libzpool
diff options
context:
space:
mode:
authorChristian Schwarz <[email protected]>2021-02-15 13:02:32 +0100
committerBrian Behlendorf <[email protected]>2021-02-19 22:44:05 -0800
commitb5fffa1d294f5e17e8e4fdf34a4fec99c374c586 (patch)
tree3d2b7165481dbe1215254e07dcd811997e7297ae /lib/libzpool
parent64e0fe14fff465604952d576051ca80c2f1be898 (diff)
libzpool: set_global_var: fix endianness handling (fixes zdb -o )
Without this patch I get the error Setting global variables is only supported on little-endian systems when using `zdb -o` on my amd64 machine. Reviewed-by: Matthew Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Pavel Zakharov <[email protected]> Signed-off-by: Christian Schwarz <[email protected]> Closes #11602
Diffstat (limited to 'lib/libzpool')
-rw-r--r--lib/libzpool/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzpool/util.c b/lib/libzpool/util.c
index ebfaa9b41..13d585299 100644
--- a/lib/libzpool/util.c
+++ b/lib/libzpool/util.c
@@ -159,7 +159,7 @@ set_global_var(char *arg)
char *varname = arg, *varval;
u_longlong_t val;
-#ifndef _LITTLE_ENDIAN
+#ifndef _ZFS_LITTLE_ENDIAN
/*
* On big endian systems changing a 64-bit variable would set the high
* 32 bits instead of the low 32 bits, which could cause unexpected