X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=run-command.h;h=56491b9f2344541c02bd0da2928a535f11193bd8;hb=8ef7933880e6134f51d7bb5d7566b31ca93ee8c7;hp=94619f52d95888b320664b7f19db3eeb7d6d8cca;hpb=c444c16589f95ac22d8e3ffe603cd7f0613512ce;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