diff options
author | Ryan Libby <[email protected]> | 2020-12-14 09:28:24 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-14 09:28:24 -0800 |
commit | c7500ded3e2616ee797dad8db56da93619bbf75c (patch) | |
tree | e0b2e4861919ce1be350a6e0d2113fc77011d755 /lib | |
parent | 923d730329290c7dc8ae5b4d27c6ed01d24d9f4c (diff) |
FreeBSD libzfs: gcc requires __thread after static
Building libzfs with gcc on FreeBSD failed because gcc is picky about
the order of keywords in declarations with __thread, whereas clang is
more relaxed.
https://gcc.gnu.org/onlinedocs/gcc/Thread-Local.html
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Ryan Libby <[email protected]>
Closes #11331
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzfs/os/freebsd/libzfs_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/os/freebsd/libzfs_compat.c b/lib/libzfs/os/freebsd/libzfs_compat.c index 2de90c7ce..0e8a3b121 100644 --- a/lib/libzfs/os/freebsd/libzfs_compat.c +++ b/lib/libzfs/os/freebsd/libzfs_compat.c @@ -178,7 +178,7 @@ execvpe(const char *name, char * const argv[], char * const envp[]) #define ERRBUFLEN 256 -__thread static char errbuf[ERRBUFLEN]; +static __thread char errbuf[ERRBUFLEN]; const char * libzfs_error_init(int error) |