X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=run-command.h;h=56491b9f2344541c02bd0da2928a535f11193bd8;hb=5bfd53629e93113a17fe7d6a7a24554dc3c17cdb;hp=94619f52d95888b320664b7f19db3eeb7d6d8cca;hpb=f3604763ba0355f628cf815cfaf4fec20d46e958;p=git.git diff --git a/run-command.h b/run-command.h index 94619f52d..56491b9f2 100644 --- a/run-command.h +++ b/run-command.h @@ -1,6 +1,10 @@ #ifndef RUN_COMMAND_H #define RUN_COMMAND_H +#ifndef NO_PTHREADS +#include +#endif + struct child_process { const char **argv; pid_t pid; @@ -74,10 +78,10 @@ struct async { void *data; int in; /* caller writes here and closes it */ int out; /* caller reads from here and closes it */ -#ifndef WIN32 +#ifdef NO_PTHREADS pid_t pid; #else - HANDLE tid; + pthread_t tid; int proc_in; int proc_out; #endif