summaryrefslogtreecommitdiff
path: root/src/thread-utils.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-11-16 14:09:44 +0100
committerVicent Marti <tanoku@gmail.com>2011-11-16 14:09:44 +0100
commita15c550db8b0552902e58c9bf2194005fb7fb0e9 (patch)
treeb33084b89561613dc8c9592c18b1dedcc8b06375 /src/thread-utils.h
parentb0b2dd5ecc2d309875e8dcd744fa5ff0a55b8fe5 (diff)
downloadlibgit2-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/thread-utils.h')
-rw-r--r--src/thread-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread-utils.h b/src/thread-utils.h
index 3361ed8bc..c5554799c 100644
--- a/src/thread-utils.h
+++ b/src/thread-utils.h
@@ -7,7 +7,7 @@
#ifndef INCLUDE_thread_utils_h__
#define INCLUDE_thread_utils_h__
-
+#include "common.h"
/* Common operations even if threading has been disabled */
typedef struct {