HomeFreeBSD

FreeBSD libzfs: gcc requires __thread after static

Description

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

Details

Provenance
rlibbyAuthored on Dec 14 2020, 5:28 PM
GitHub <noreply@github.com>Committed on Dec 14 2020, 5:28 PM
Parents
rG923d73032929: dmu_zfetch: fix memory leak
Branches
Unknown
Tags
Unknown