comparison 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
comparison
equal deleted inserted replaced
287:13a0bd77a29d 288:e11d67e05968
35 #include <direct.h> 35 #include <direct.h>
36 /* <process.h> should not conflict with "process.h", as per ANSI definition. 36 /* <process.h> should not conflict with "process.h", as per ANSI definition.
37 This is not true though with visual c though. The trick below works with 37 This is not true though with visual c though. The trick below works with
38 VC4.2b and with VC5.0. It assumes that VC is installed in a kind of 38 VC4.2b and with VC5.0. It assumes that VC is installed in a kind of
39 standard way, so include files get to what/ever/path/include. 39 standard way, so include files get to what/ever/path/include.
40
41 Unfortunately, this must go before lisp.h, since process.h defines abort()
42 which will conflict with the macro defined in lisp.h
40 */ 43 */
41 #include <../include/process.h> 44 #include <../include/process.h>
42 #endif /* WINDOWSNT */ 45 #endif /* WINDOWSNT */
43 46
44 #include "lisp.h" 47 #include "lisp.h"
561 { 564 {
562 signal (saved_handlers->code, saved_handlers->handler); 565 signal (saved_handlers->code, saved_handlers->handler);
563 saved_handlers++; 566 saved_handlers++;
564 } 567 }
565 } 568 }
569
570 #ifdef WINDOWSNT
571 int
572 sys_getpid (void)
573 {
574 return abs (getpid ());
575 }
576 #endif /* WINDOWSNT */
566 577
567 /* Fork a subshell. */ 578 /* Fork a subshell. */
568 static void 579 static void
569 sys_subshell (void) 580 sys_subshell (void)
570 { 581 {