summaryrefslogtreecommitdiff
path: root/thread-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'thread-utils.h')
-rw-r--r--thread-utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/thread-utils.h b/thread-utils.h
index 6fb98c333c..d9a769d190 100644
--- a/thread-utils.h
+++ b/thread-utils.h
@@ -7,5 +7,9 @@
extern int online_cpus(void);
extern int init_recursive_mutex(pthread_mutex_t*);
+#else
+
+#define online_cpus() 1
+
#endif
#endif /* THREAD_COMPAT_H */