summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Spahr-Summers <Justin.SpahrSummers@gmail.com>2012-12-09 02:37:33 -0800
committerJustin Spahr-Summers <Justin.SpahrSummers@gmail.com>2012-12-09 02:37:33 -0800
commit2bb1c7aa2629e1e4e3a5f04d494b16957da849e1 (patch)
treeeb730d3b94cbf893263e029d20f53d0ae35f9825
parenta35b3864583bd1c98334aa71bb4e4c217ace55aa (diff)
downloadlibgit2-2bb1c7aa2629e1e4e3a5f04d494b16957da849e1.tar.gz
Treat git_mutex_lock as successful when threads are disabled
-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 f0a51f28c..d747a0d30 100644
--- a/src/thread-utils.h
+++ b/src/thread-utils.h
@@ -79,7 +79,7 @@ GIT_INLINE(int) git_atomic_dec(git_atomic *a)
/* Pthreads Mutex */
#define git_mutex unsigned int
#define git_mutex_init(a) (void)0
-#define git_mutex_lock(a) (void)0
+#define git_mutex_lock(a) 0
#define git_mutex_unlock(a) (void)0
#define git_mutex_free(a) (void)0