Skip to content

Commit e0e2128

Browse files
etbuiragitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 63a4513 commit e0e2128

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

builtin/index-pack.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ static void cleanup_thread(void)
185185
#define deepest_delta_lock()
186186
#define deepest_delta_unlock()
187187

188+
#define type_cas_lock()
189+
#define type_cas_unlock()
190+
188191
#endif
189192

190193

0 commit comments

Comments
 (0)