Il 08/11/2013 17:33, Stacey Son ha scritto: > diff --git a/include/qemu/tls.h b/include/qemu/tls.h > index b92ea9d..ae7d79d 100644 > --- a/include/qemu/tls.h > +++ b/include/qemu/tls.h > @@ -38,7 +38,7 @@ > * TODO: proper implementations via Win32 .tls sections and > * POSIX pthread_getspecific. > */ > -#ifdef __linux__ > +#if defined(__linux__) || defined(__FreeBSD__) > #define DECLARE_TLS(type, x) extern DEFINE_TLS(type, x) > #define DEFINE_TLS(type, x) __thread __typeof__(type) tls__##x > #define tls_var(x) tls__##x
Acked-by: Paolo Bonzini <pbonz...@redhat.com>