summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/tls/t_tls_dynamic.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-10-12 10:04:59 +0000
committerngie <ngie@FreeBSD.org>2014-10-12 10:04:59 +0000
commit9cc3d490e4454bdd80542923889dc987d978a6b2 (patch)
tree8d956b96a65ec91fc55e87cb463867e078eabd25 /contrib/netbsd-tests/lib/libc/tls/t_tls_dynamic.c
parente3e9d7f585ddc1035aee9aab7cc3dcc190177e4e (diff)
downloadFreeBSD-src-9cc3d490e4454bdd80542923889dc987d978a6b2.zip
FreeBSD-src-9cc3d490e4454bdd80542923889dc987d978a6b2.tar.gz
Only #include <sys/tls.h> on NetBSD
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/tls/t_tls_dynamic.c')
-rw-r--r--contrib/netbsd-tests/lib/libc/tls/t_tls_dynamic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/tls/t_tls_dynamic.c b/contrib/netbsd-tests/lib/libc/tls/t_tls_dynamic.c
index 9d242ae..b5d1728 100644
--- a/contrib/netbsd-tests/lib/libc/tls/t_tls_dynamic.c
+++ b/contrib/netbsd-tests/lib/libc/tls/t_tls_dynamic.c
@@ -38,7 +38,9 @@ __RCSID("$NetBSD: t_tls_dynamic.c,v 1.3 2012/01/17 20:34:57 joerg Exp $");
#include <pthread.h>
#include <unistd.h>
+#if defined(__NetBSD__)
#include <sys/tls.h>
+#endif
#ifdef __HAVE_NO___THREAD
#define __thread
OpenPOWER on IntegriCloud