From e0e21283b60da5d5d9d5f95f9f2a73189fa978f1 Mon Sep 17 00:00:00 2001 From: Etienne Buira Date: Sat, 11 Oct 2014 16:42:07 +0200 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- builtin/index-pack.c | 3 +++ 1 file changed, 3 insertions(+) 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