Skip to contentSkip to conversation

fix compilation with NO_PTHREADS

PATCH In review Jeff King 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore

Jeff King

author
#0 lore raw

PATCH 1/1 fix compilation with NO_PTHREADS

Commit 1327452 cleaned up an unused parameter from wait_or_whine, but forgot to update a caller that is inside "#ifdef NO_PTHREADS".

---
I happened to notice this while looking at the sigpipe topic. I guess not many people are building with NO_PTHREADS these days.

 run-command.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
run-command.c +1 -1
index cfb7274..0471219 100644
@@ -725,7 +725,7 @@ int finish_async(struct async *async)
 int finish_async(struct async *async)
 {
 #ifdef NO_PTHREADS
-	return wait_or_whine(async->pid, "child process", 0);
+	return wait_or_whine(async->pid, "child process");
 #else
 	void *ret = (void *)(intptr_t)(-1);
 
Signature · 1 line
1.8.1.rc1.16.g6d46841
#1 lore raw
Quoted 2 lines · Jeff King

I happened to notice this while looking at the sigpipe topic. I guess not many people are building with NO_PTHREADS these days.

Or that those people don't build "next". :)

Thanks for catching it.