about summary refs log tree commit diff
path: root/src/thread/cnd_signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/cnd_signal.c')
-rw-r--r--src/thread/cnd_signal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/thread/cnd_signal.c b/src/thread/cnd_signal.c
index 1211260b..8165dae1 100644
--- a/src/thread/cnd_signal.c
+++ b/src/thread/cnd_signal.c
@@ -1,10 +1,11 @@
 #include <threads.h>
+#include <pthread.h>
 
-int __private_cond_signal(cnd_t *, int);
+int __private_cond_signal(pthread_cond_t *, int);
 
 int cnd_signal(cnd_t *c)
 {
 	/* This internal function never fails, and always returns zero,
 	 * which matches the value thrd_success is defined with. */
-	return __private_cond_signal(c, 1);
+	return __private_cond_signal((pthread_cond_t *)c, 1);
 }