diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-03-16 22:35:51 +0300 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-03-20 22:45:06 +0300 |
commit | bb3de0c472b2d5d6b8091c190bee3db79c4b5e27 (patch) | |
tree | 6be2facd0014fff4a4769b6a6a082c722c03ad87 /src/common.h | |
parent | b5c5f0f8086ee4e9bccf0703386fd5219ac380c2 (diff) |
Thread safe cache
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 9 |
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" |