diff src/s/ms-w32.h @ 108200:e30aff0bf9d5

Emulate POSIX_SIGNALS on MS-Windows. w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask): New stubs. sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away. (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code from non-POSIX_SIGNALS section to POSIX_SIGNALS section. s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK) (SIG_SETMASK, SIG_UNBLOCK): Define.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 01 May 2010 21:28:00 +0300
parents ea2f4615a622
children 06c34f190db1
line wrap: on
line diff
--- a/src/s/ms-w32.h	Sat May 01 18:53:35 2010 +0300
+++ b/src/s/ms-w32.h	Sat May 01 21:28:00 2010 +0300
@@ -123,6 +123,18 @@
 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
 
+/* Do we have POSIX signals?  (We don't, but we don't care, either.)  */
+#define POSIX_SIGNALS  1
+#include <sys/types.h>
+struct sigaction {
+  int sa_flags;
+  void (*sa_handler)(int);
+  sigset_t sa_mask;
+};
+#define SIG_BLOCK       1
+#define SIG_SETMASK     2
+#define SIG_UNBLOCK     3
+
 /* The null device on Windows NT. */
 #define NULL_DEVICE     "NUL:"