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-15 22:04:41 +0300
committerVicent Marti <tanoku@gmail.com>2011-03-15 22:14:07 +0300
commitbbcc7ffc690c4065954102530447aef4e8ccf895 (patch)
tree94566de36b18a1345a83a33fd8be9df0a35afe35 /src/common.h
parentb5abb881a623b8b492e0375b8e9c8936079c39bb (diff)
Add proper threading support to libgit2
We now depend on libpthread on all Unix platforms (should be installed by default) and use a simple wrapper for Windows threads under Win32. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index 1ca00471b..723085a2b 100644
--- a/src/common.h
+++ b/src/common.h
@@ -11,9 +11,6 @@
#include "git2/thread-utils.h"
#include "cc-compat.h"
-#ifdef GIT_HAS_PTHREAD
-# include <pthread.h>
-#endif
#ifdef GIT_HAVE_INTTYPES_H
# include <inttypes.h>
#endif
@@ -34,6 +31,7 @@
# include <windows.h>
# include "msvc-compat.h"
# include "mingw-compat.h"
+# include "win32/pthread.h"
# define snprintf _snprintf
@@ -43,6 +41,7 @@ typedef SSIZE_T ssize_t;
# include <unistd.h>
# include <arpa/inet.h>
+# include <pthread.h>
#endif