diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-11-16 14:09:44 +0100 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-11-16 14:09:44 +0100 |
| commit | a15c550db8b0552902e58c9bf2194005fb7fb0e9 (patch) | |
| tree | b33084b89561613dc8c9592c18b1dedcc8b06375 /src/pack.c | |
| parent | b0b2dd5ecc2d309875e8dcd744fa5ff0a55b8fe5 (diff) | |
| download | libgit2-a15c550db8b0552902e58c9bf2194005fb7fb0e9.tar.gz | |
threads: Fix the shared global state with TLS
See `global.c` for a description of what we're doing.
When libgit2 is built with GIT_THREADS support, the threading system
must be explicitly initialized with `git_threads_init()`.
Diffstat (limited to 'src/pack.c')
| -rw-r--r-- | src/pack.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c index 429bb5e0f..ae954b988 100644 --- a/src/pack.c +++ b/src/pack.c @@ -5,11 +5,13 @@ * a Linking Exception. For full terms see the included COPYING file. */ -#include "mwindow.h" +#include "common.h" #include "odb.h" #include "pack.h" #include "delta-apply.h" #include "sha1_lookup.h" +#include "mwindow.h" +#include "fileops.h" #include "git2/oid.h" #include "git2/zlib.h" |
