summaryrefslogtreecommitdiff
path: root/thread-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'thread-utils.h')
-rw-r--r--thread-utils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/thread-utils.h b/thread-utils.h
index cce4b77bd6..d9a769d190 100644
--- a/thread-utils.h
+++ b/thread-utils.h
@@ -1,6 +1,15 @@
#ifndef THREAD_COMPAT_H
#define THREAD_COMPAT_H
+#ifndef NO_PTHREADS
+#include <pthread.h>
+
extern int online_cpus(void);
+extern int init_recursive_mutex(pthread_mutex_t*);
+
+#else
+
+#define online_cpus() 1
+#endif
#endif /* THREAD_COMPAT_H */