summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/link.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/link.h b/include/link.h
index 31b72e652..dc6502476 100644
--- a/include/link.h
+++ b/include/link.h
@@ -25,7 +25,9 @@
#include <elf.h>
#include <dlfcn.h>
#include <sys/types.h>
+#ifdef _LIBC
#include <tls.h>
+#endif
/* We use this macro to refer to ELF types independent of the native wordsize.
`ElfW(TYPE)' is used in place of `Elf32_TYPE' or `Elf64_TYPE'. */