index-pack: fix compilation with NO_PTHREADS
authorEtienne Buira <etienne.buira@gmail.com>
Sat, 11 Oct 2014 14:42:07 +0000 (16:42 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Oct 2014 19:33:30 +0000 (12:33 -0700)
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>
builtin/index-pack.c
index 792c66ca5932638e11f2587f928a6b98c08e7854..a369f5535351645f15b08efb9d592be4257cdeff 100644 (file)
@@ -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