summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/tls/t_tls_static_helper.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_static_helper.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_static_helper.c')
-rw-r--r--contrib/netbsd-tests/lib/libc/tls/t_tls_static_helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/tls/t_tls_static_helper.c b/contrib/netbsd-tests/lib/libc/tls/t_tls_static_helper.c
index da3b6f0..a85ce9b 100644
--- a/contrib/netbsd-tests/lib/libc/tls/t_tls_static_helper.c
+++ b/contrib/netbsd-tests/lib/libc/tls/t_tls_static_helper.c
@@ -34,7 +34,9 @@
#include <sys/cdefs.h>
__RCSID("$NetBSD: t_tls_static_helper.c,v 1.2 2012/01/17 20:34:57 joerg Exp $");
+#if defined(__NetBSD__)
#include <sys/tls.h>
+#endif
#ifdef __HAVE_NO___THREAD
#define __thread
OpenPOWER on IntegriCloud