diff options
author | Etienne Buira <etienne.buira@gmail.com> | 2014-10-11 16:42:07 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-10-13 12:33:30 -0700 |
commit | e0e21283b60da5d5d9d5f95f9f2a73189fa978f1 (patch) | |
tree | 206a53a821260f63f56abae24aa2a7b8c09e935e /builtin | |
parent | Update draft release notes to 2.2 (diff) | |
download | tgif-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |