summaryrefslogtreecommitdiffstats
path: root/libc/pwd_grp/lckpwdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/pwd_grp/lckpwdf.c')
-rw-r--r--libc/pwd_grp/lckpwdf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/pwd_grp/lckpwdf.c b/libc/pwd_grp/lckpwdf.c
index 2d38e89f9..964753458 100644
--- a/libc/pwd_grp/lckpwdf.c
+++ b/libc/pwd_grp/lckpwdf.c
@@ -49,7 +49,8 @@ static int lock_fd = -1;
/* Prevent problems in multithreaded program by using mutex. */
#ifdef __UCLIBC_HAS_THREADS__
-# include <pthread.h>
+#include <pthread.h>
+#include <pthreadP.h>
static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER;
#endif
#define LOCK __pthread_mutex_lock(&mylock)