bisect: add test to check that revs are properly parsed
[gitweb.git] / thread-utils.h
index 1727a03333b80f2a01ca029162a4b511480a86e8..d9a769d19084587b397c50e9420843be38e89903 100644 (file)
@@ -1,7 +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 */