Commit b72ca26740c71371258bd178188a3d981e39701e

Ramsay Jones 2008-11-29T19:21:24

Diasble TLS on cygwin Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Acked-by: Andreas Ericsson <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/git/thread-utils.h b/src/git/thread-utils.h
index bc4153d..7322d43 100644
--- a/src/git/thread-utils.h
+++ b/src/git/thread-utils.h
@@ -22,8 +22,8 @@
 # define GIT_TLS /* nothing: tls vars are thread-global */
 #endif
 
-/* sparse doesn't grok thread-local variables */
-#if defined(__CHECKER__)
+/* sparse and cygwin don't grok thread-local variables */
+#if defined(__CHECKER__) || defined(__CYGWIN__)
 # undef GIT_HAS_TLS
 # undef GIT_TLS
 # define GIT_TLS