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>

Etienne Buira committed Oct 11, 2014 at 16:42 UTC e0e21283b60da5d5d9d5f95f9f2a73189fa978f1
1 file changed +3
builtin/index-pack.c
+3
@@ -185,6 +185,9 @@ static void cleanup_thread(void)
185 #define deepest_delta_lock()
186 #define deepest_delta_unlock()
187
188 +#define type_cas_lock()
189 +#define type_cas_unlock()
190 +
191 #endif
192
193