Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Etienne Buira authored and Junio C Hamano committed Oct 13, 2014
1 parent 63a4513 commit e0e2128
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builtin/index-pack.c
Expand Up @@ -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


Expand Down

0 comments on commit e0e2128

Please sign in to comment.