aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorEtienne Buira <etienne.buira@gmail.com>2014-10-11 16:42:07 +0200
committerJunio C Hamano <gitster@pobox.com>2014-10-13 12:33:30 -0700
commite0e21283b60da5d5d9d5f95f9f2a73189fa978f1 (patch)
tree206a53a821260f63f56abae24aa2a7b8c09e935e /builtin
parent63a45136a329bab550425c3142db6071434d935e (diff)
downloadgit-e0e21283b60da5d5d9d5f95f9f2a73189fa978f1.tar.gz
git-e0e21283b60da5d5d9d5f95f9f2a73189fa978f1.tar.xz
index-pack: fix compilation with NO_PTHREADS
type_cas_lock/unlock() should be defined as no-op for NO_PTHREADS build, just like all the other locking primitives. Signed-off-by: Etienne Buira <etienne.buira@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/index-pack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/index-pack.c b/builtin/index-pack.c
index 792c66ca5..a369f5535 100644
--- a/builtin/index-pack.c
+++ b/builtin/index-pack.c
@@ -185,6 +185,9 @@ static void cleanup_thread(void)
#define deepest_delta_lock()
#define deepest_delta_unlock()
+#define type_cas_lock()
+#define type_cas_unlock()
+
#endif