summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/misc/internals/__uClibc_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index d82126815..3f09ad228 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -36,7 +36,9 @@
#include <not-cancel.h>
#include <atomic.h>
#endif
-
+#ifdef __UCLIBC_HAS_THREADS__
+#include <pthread.h>
+#endif
#ifndef SHARED
void *__libc_stack_end = NULL;