From: Bruno Haible Date: Tue, 21 Oct 2003 20:43:02 +0000 (+0000) Subject: Add support for native Woe32 API. X-Git-Tag: v0.13~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57151fe82b59e2f9c89f577341f8351dba2fe3f6;p=thirdparty%2Fgettext.git Add support for native Woe32 API. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index efa3982cd..19fb0ba87 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-10-21 Bruno Haible + + * wait-process.c (kill): Define appropriately for native Woe32 API. + 2003-10-21 Bruno Haible * mkdtemp.c (mkdir): Redefine on mingw. diff --git a/gettext-tools/lib/wait-process.c b/gettext-tools/lib/wait-process.c index 138f25c64..42a676329 100644 --- a/gettext-tools/lib/wait-process.c +++ b/gettext-tools/lib/wait-process.c @@ -101,6 +101,18 @@ #define SIZEOF(a) (sizeof(a) / sizeof(a[0])) +#if defined _MSC_VER || defined __MINGW32__ + +/* The return value of spawnvp() is really a process handle as returned + by CreateProcess(). Therefore we can kill it using TerminateProcess. */ +#define kill(pid,sig) TerminateProcess ((HANDLE) (pid), sig) + +#endif + + +void +register_slave_subprocess (pid_t child) + /* Type of an entry in the slaves array. The 'used' bit determines whether this entry is currently in use. (If pid_t was an atomic type like sig_atomic_t, we could just set the