From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VldI9-0006G1-8Z for qemu-devel@nongnu.org; Wed, 27 Nov 2013 06:28:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VldI0-0004EY-Qd for qemu-devel@nongnu.org; Wed, 27 Nov 2013 06:28:25 -0500 Received: from mail-ie0-x231.google.com ([2607:f8b0:4001:c03::231]:63059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VldI0-0004ES-EL for qemu-devel@nongnu.org; Wed, 27 Nov 2013 06:28:16 -0500 Received: by mail-ie0-f177.google.com with SMTP id tp5so11194522ieb.8 for ; Wed, 27 Nov 2013 03:28:16 -0800 (PST) Sender: Paolo Bonzini Message-ID: <5295D74C.9060001@redhat.com> Date: Wed, 27 Nov 2013 12:28:12 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1383928417-38009-1-git-send-email-sson@FreeBSD.org> <1383928417-38009-15-git-send-email-sson@FreeBSD.org> In-Reply-To: <1383928417-38009-15-git-send-email-sson@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 14/19] bsd-user: add support for thread related system calls List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stacey Son Cc: qemu-devel@nongnu.org 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