]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Add support for native Woe32 API.
authorBruno Haible <bruno@clisp.org>
Tue, 21 Oct 2003 20:43:02 +0000 (20:43 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:05 +0000 (12:11 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/wait-process.c

index efa3982cd0975fac7148e7119fa32dd10f8104b5..19fb0ba87b816c8319aa4498c9db2768b665a9d7 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * wait-process.c (kill): Define appropriately for native Woe32 API.
+
 2003-10-21  Bruno Haible  <bruno@clisp.org>
 
        * mkdtemp.c (mkdir): Redefine on mingw.
index 138f25c64762100d6d74df5c9f534949e8a795c7..42a676329f332079d82a581e13952f9f88e2549a 100644 (file)
 #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