aboutsummaryrefslogtreecommitdiff
path: root/run-command.h
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2010-03-09 21:00:36 +0100
committerJunio C Hamano <gitster@pobox.com>2010-03-10 14:26:54 -0800
commitf6b6098316192475ff0b3fa2ba894d7e555bdfac (patch)
treef3fb95b975869ca5fea6006fdc70e23f814fcd3e /run-command.h
parent0ea1c89ba616397ef7e5f6f601ef7a24d2c27b8e (diff)
downloadgit-f6b6098316192475ff0b3fa2ba894d7e555bdfac.tar.gz
git-f6b6098316192475ff0b3fa2ba894d7e555bdfac.tar.xz
Enable threaded async procedures whenever pthreads is available
Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'run-command.h')
-rw-r--r--run-command.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/run-command.h b/run-command.h
index 40db39cec..56491b9f2 100644
--- a/run-command.h
+++ b/run-command.h
@@ -1,7 +1,7 @@
#ifndef RUN_COMMAND_H
#define RUN_COMMAND_H
-#ifdef ASYNC_AS_THREAD
+#ifndef NO_PTHREADS
#include <pthread.h>
#endif
@@ -78,7 +78,7 @@ struct async {
void *data;
int in; /* caller writes here and closes it */
int out; /* caller reads from here and closes it */
-#ifndef ASYNC_AS_THREAD
+#ifdef NO_PTHREADS
pid_t pid;
#else
pthread_t tid;