summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 0e115c5be..d17bf1cee 100644
--- a/src/common.h
+++ b/src/common.h
@@ -5,6 +5,9 @@
#include "util.h"
#include "errors.h"
+#ifdef GIT_HAS_PTHREAD
+# include <pthread.h>
+#endif
#include <assert.h>
#include <errno.h>
#include <stdlib.h>