summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/setenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/setenv.c')
-rw-r--r--libc/stdlib/setenv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/stdlib/setenv.c b/libc/stdlib/setenv.c
index fa61675fb..b2d807b50 100644
--- a/libc/stdlib/setenv.c
+++ b/libc/stdlib/setenv.c
@@ -34,6 +34,7 @@ libc_hidden_proto(unsetenv)
#ifdef __UCLIBC_HAS_THREADS__
# include <pthread.h>
+# include <pthreadP.h>
static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER;
#endif
#define LOCK __pthread_mutex_lock(&mylock)