summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-02 07:57:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-02 07:57:17 +0000
commit90c4dae08fea47797b3ae574e5dfe35dc66f5631 (patch)
tree4198e3ccd0a5bab17db2a0f82ee7b6c643115c69 /signal.c
parente193fd8d665567c7f3b827c21a1b77af43e2c391 (diff)
WinCE patch merged
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/signal.c b/signal.c
index a4331a9..d9b5d9b 100644
--- a/signal.c
+++ b/signal.c
@@ -369,7 +369,7 @@ static RETSIGTYPE
sighandler(sig)
int sig;
{
-#ifdef NT
+#if defined(NT) || defined(_WIN32_WCE)
#define IN_MAIN_CONTEXT(f, a) (rb_w32_main_context(a, f) ? (void)0 : f(a))
#else
#define IN_MAIN_CONTEXT(f, a) f(a)
@@ -453,7 +453,7 @@ rb_trap_exec()
}
struct trap_arg {
-#if !defined(NT)
+#if !defined(NT) && !defined(_WIN32_WCE)
# ifdef HAVE_SIGPROCMASK
sigset_t mask;
# else
@@ -594,7 +594,7 @@ trap(arg)
trap_list[sig] = command;
/* enable at least specified signal. */
-#if !defined(NT)
+#if !defined(NT) && !defined(_WIN32_WCE)
#ifdef HAVE_SIGPROCMASK
sigdelset(&arg->mask, sig);
#else
@@ -604,7 +604,7 @@ trap(arg)
return old;
}
-#if !defined(NT)
+#if !defined(NT) && !defined(_WIN32_WCE)
static VALUE
trap_ensure(arg)
struct trap_arg *arg;
@@ -623,7 +623,7 @@ trap_ensure(arg)
void
rb_trap_restore_mask()
{
-#if !defined(NT)
+#if !defined(NT) && !defined(_WIN32_WCE)
# ifdef HAVE_SIGPROCMASK
sigprocmask(SIG_SETMASK, &trap_last_mask, NULL);
# else
@@ -655,7 +655,7 @@ sig_trap(argc, argv)
if (OBJ_TAINTED(arg.cmd)) {
rb_raise(rb_eSecurityError, "Insecure: tainted signal trap");
}
-#if !defined(NT)
+#if !defined(NT) && !defined(_WIN32_WCE)
/* disable interrupt */
# ifdef HAVE_SIGPROCMASK
sigfillset(&arg.mask);