diff src/sysdep.c @ 288:e11d67e05968 r21-0b42

Import from CVS: tag r21-0b42
author cvs
date Mon, 13 Aug 2007 10:35:54 +0200
parents 57709be46d1b
children c9fe270a4101
line wrap: on
line diff
--- a/src/sysdep.c	Mon Aug 13 10:35:07 2007 +0200
+++ b/src/sysdep.c	Mon Aug 13 10:35:54 2007 +0200
@@ -37,6 +37,9 @@
    This is not true though with visual c though. The trick below works with
    VC4.2b and with VC5.0. It assumes that VC is installed in a kind of
    standard way, so include files get to what/ever/path/include.
+
+   Unfortunately, this must go before lisp.h, since process.h defines abort()
+   which will conflict with the macro defined in lisp.h
 */
 #include <../include/process.h>
 #endif /* WINDOWSNT */
@@ -564,6 +567,14 @@
     }
 }
 
+#ifdef WINDOWSNT
+int
+sys_getpid (void)
+{
+  return abs (getpid ());
+}
+#endif /* WINDOWSNT */
+
 /* Fork a subshell.  */
 static void
 sys_subshell (void)