summaryrefslogtreecommitdiff
path: root/src/runtime.c
diff options
context:
space:
mode:
authorlhchavez <lhchavez@lhchavez.com>2020-10-31 07:51:03 -0700
committerlhchavez <lhchavez@lhchavez.com>2020-11-02 05:28:41 -0800
commitaa532e298937c7eb863b83c766cdabbf8be4fec9 (patch)
tree626a2fd555252b62c9232204c8b2d55409ab9959 /src/runtime.c
parent52294c413100ed4930764addc69beadd82382a4c (diff)
downloadlibgit2-aa532e298937c7eb863b83c766cdabbf8be4fec9.tar.gz
Fix the `-DTHREADSAFE=OFF` build
This change avoids using the `(void)0` construct for some of the mutex `#define`s, since that makes the "return type" of those "functions" to be `void` instead of `int`.
Diffstat (limited to 'src/runtime.c')
-rw-r--r--src/runtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime.c b/src/runtime.c
index 56110c49a..f8e3e3b27 100644
--- a/src/runtime.c
+++ b/src/runtime.c
@@ -103,8 +103,8 @@ GIT_INLINE(int) init_unlock(void)
# error unknown threading model
#else
-# define mutex_lock() 0
-# define mutex_unlock() 0
+# define init_lock() git___noop()
+# define init_unlock() git___noop()
#endif