diff src/s/windowsnt.h @ 223:2c611d1463a6 r20-4b10

Import from CVS: tag r20-4b10
author cvs
date Mon, 13 Aug 2007 10:10:54 +0200
parents 78478c60bfcd
children 0e522484dd2a
line wrap: on
line diff
--- a/src/s/windowsnt.h	Mon Aug 13 10:10:03 2007 +0200
+++ b/src/s/windowsnt.h	Mon Aug 13 10:10:54 2007 +0200
@@ -28,6 +28,11 @@
 #define DOS_NT 	/* MSDOS or WINDOWSNT */
 #endif
 
+/* In case non-Microsoft compiler is used, we fake _MSC_VER */
+#ifndef _MSC_VER
+#define _MSC_VER  1
+#endif
+
 typedef unsigned short mode_t;
 typedef long ptrdiff_t;
 typedef int pid_t;
@@ -223,7 +228,6 @@
 #define spawnve sys_spawnve
 #define wait    sys_wait
 #define kill    sys_kill
-#define signal  sys_signal
 
 #define select  sys_select
 
@@ -258,6 +262,17 @@
 #define abort	win32_abort
 #endif
 
+/* Setitimer is emulated */
+#define HAVE_SETITIMER
+
+/* We now have emulation for some signals */
+#define HAVE_SIGHOLD
+#define sigset(s,h) msw_sigset(s,h)
+#define sighold(s) msw_sighold(s)
+#define sigrelse(s) msw_sigrelse(s)
+#define sigpause(s) msw_sigpause(s)
+#define signal sigset
+
 /* Defines that we need that aren't in the standard signal.h  */
 #define SIGHUP  1               /* Hang up */
 #define SIGQUIT 3               /* Quit process */
@@ -266,6 +281,7 @@
 #define SIGPIPE 13              /* Write on pipe with no readers */
 #define SIGALRM 14              /* Alarm */
 #define SIGCHLD 18              /* Death of child */
+#define SIGPROF 29		/* Profiling timer exp */
 
 /* For integration with MSDOS support.  */
 #define getdisk()               (_getdrive () - 1)