use test result for kill() to guard the code
[charm.git] / src / conv-ccs / ccs-builtins.C
index 243456296f8d8765ffff9b139a0dd29e56f63b17..f55720cf69234d7e874c93be10ed3542d747343b 100644 (file)
 #include "queueing.h"
 #include "ccs-builtins.h"
 
+#ifdef __MINGW_H
+#include "process.h"
+#endif
+
 #if CMK_CCS_AVAILABLE
 
 /**********************************************
@@ -91,7 +95,7 @@ extern "C" void CcsImpl_kill(void)
 #include <signal.h>
 
 static void ccs_killpe(char *msg) {
-#if CMK_HAS_GETPID
+#if CMK_HAS_KILL
   kill(getpid(), 9);
 #else
   CmiAbort("ccs_killpe() not supported!");