From: Bruno Haible Date: Fri, 28 Nov 2003 20:23:13 +0000 (+0000) Subject: Fix compilation error on mingw. X-Git-Tag: v0.13~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=482ff17e79066a72d75022fe3fe39a974e3c4aa3;p=thirdparty%2Fgettext.git Fix compilation error on mingw. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 76b514e0f..d91befa2b 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-11-27 Bruno Haible + + * wait-process.c: On Windows, include windows.h. Needed on mingw. + 2003-11-17 Bruno Haible * canonicalize.c: #undef realpath after but before the diff --git a/gettext-tools/lib/wait-process.c b/gettext-tools/lib/wait-process.c index 988916549..adb1be04a 100644 --- a/gettext-tools/lib/wait-process.c +++ b/gettext-tools/lib/wait-process.c @@ -103,6 +103,9 @@ #if defined _MSC_VER || defined __MINGW32__ +#define WIN32_LEAN_AND_MEAN +#include + /* 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)