Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-03-16 22:35:51 +0300
committerVicent Marti <tanoku@gmail.com>2011-03-20 22:45:06 +0300
commitbb3de0c472b2d5d6b8091c190bee3db79c4b5e27 (patch)
tree6be2facd0014fff4a4769b6a6a082c722c03ad87 /src/common.h
parentb5c5f0f8086ee4e9bccf0703386fd5219ac380c2 (diff)
Thread safe cache
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index 723085a2b..5ad878e26 100644
--- a/src/common.h
+++ b/src/common.h
@@ -31,18 +31,21 @@
# include <windows.h>
# include "msvc-compat.h"
# include "mingw-compat.h"
-# include "win32/pthread.h"
+# ifdef GIT_THREADS
+# include "win32/pthread.h"
+#endif
# define snprintf _snprintf
typedef SSIZE_T ssize_t;
#else
-
# include <unistd.h>
# include <arpa/inet.h>
-# include <pthread.h>
+# ifdef GIT_THREADS
+# include <pthread.h>
+# endif
#endif
#include "git2/common.h"