diff options
Diffstat (limited to 'src/git/errors.h')
| -rw-r--r-- | src/git/errors.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/git/errors.h b/src/git/errors.h index 18eb2b8ad..37870a4c5 100644 --- a/src/git/errors.h +++ b/src/git/errors.h @@ -13,8 +13,15 @@ GIT_BEGIN_DECL /** The git errno. */ +#if defined(GIT_TLS) GIT_EXTERN(int) GIT_TLS git_errno; +#elif defined(GIT_HAS_PTHREAD) +# define git_errno (*git__errno_storage()) +GIT_EXTERN(int *) git__errno_storage(void); + +#endif + /** * strerror() for the Git library * @param num The error code to explain |
