summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/random.c')
-rw-r--r--libc/stdlib/random.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/stdlib/random.c b/libc/stdlib/random.c
index 9f1977ee3..80df7890b 100644
--- a/libc/stdlib/random.c
+++ b/libc/stdlib/random.c
@@ -34,6 +34,7 @@ libc_hidden_proto(initstate_r)
#ifdef __UCLIBC_HAS_THREADS__
# include <pthread.h>
+# include <pthreadP.h>
/* POSIX.1c requires that there is mutual exclusion for the `rand' and
`srand' functions to prevent concurrent calls from modifying common
data. */