mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
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 <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ryan Libby <rlibby@FreeBSD.org> Closes #11331
This commit is contained in:
parent
923d730329
commit
c7500ded3e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user