diff options
Diffstat (limited to 'src/git/thread-utils.h')
| -rw-r--r-- | src/git/thread-utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/git/thread-utils.h b/src/git/thread-utils.h index f2ddf1eec..7ce66fdc1 100644 --- a/src/git/thread-utils.h +++ b/src/git/thread-utils.h @@ -22,4 +22,11 @@ # define GIT_TLS /* nothing: tls vars are thread-global */ #endif +/* sparse doesn't grok thread-local variables */ +#ifdef SPARSE_IS_RUNNING +# undef GIT_HAS_TLS +# undef GIT_TLS +# define GIT_TLS +#endif + #endif /* INCLUDE_git_thread_utils_h__ */ |
