Skip to content

Commit b5fffa1

Browse files
problamebehlendorf
authored andcommitted
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
1 parent 64e0fe1 commit b5fffa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libzpool/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ set_global_var(char *arg)
159159
char *varname = arg, *varval;
160160
u_longlong_t val;
161161

162-
#ifndef _LITTLE_ENDIAN
162+
#ifndef _ZFS_LITTLE_ENDIAN
163163
/*
164164
* On big endian systems changing a 64-bit variable would set the high
165165
* 32 bits instead of the low 32 bits, which could cause unexpected

0 commit comments

Comments
 (0)