From: Etienne Buira Date: Sat, 11 Oct 2014 14:42:07 +0000 (+0200) Subject: index-pack: fix compilation with NO_PTHREADS X-Git-Tag: v2.2.0-rc0~19^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e0e21283b60da5d5d9d5f95f9f2a73189fa978f1?ds=inline;hp=--cc 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 --- e0e21283b60da5d5d9d5f95f9f2a73189fa978f1 diff --git a/builtin/index-pack.c b/builtin/index-pack.c index 792c66ca59..a369f55353 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