summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/tls/t_tls_static_helper.c
diff options
context:
space:
mode:
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