summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 01:53:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 01:53:08 +0000
commitc6af6b1b947f8b367c22904bd5b31079784059f6 (patch)
tree079fc0c321ed4bd793f10b9113a5a6ee96d95c48 /signal.c
parente24346d6c6b4bdf91e1e32bfd53a328086b8d772 (diff)
* symbian/README.SYMBIAN: symbian support added. great appreciate
to <alexandre.zavorine at symbian.com>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/signal.c b/signal.c
index 8d75c3bc5c..85f4c90b70 100644
--- a/signal.c
+++ b/signal.c
@@ -409,7 +409,7 @@ static struct {
#endif
typedef RETSIGTYPE (*sighandler_t)(int);
-#ifdef SA_SIGINFO
+#if defined SA_SIGINFO && !defined __SYMBIAN32__
typedef void ruby_sigaction_t(int, siginfo_t*, void*);
#define SIGINFO_ARG , siginfo_t *info, void *ctx
#else
@@ -535,7 +535,7 @@ static int trap_last_mask;
void
rb_disable_interrupt(void)
{
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__SYMBIAN32__)
sigset_t mask;
sigfillset(&mask);
sigdelset(&mask, SIGVTALRM);
@@ -547,7 +547,7 @@ rb_disable_interrupt(void)
void
rb_enable_interrupt(void)
{
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__SYMBIAN32__)
sigset_t mask;
sigemptyset(&mask);
pthread_sigmask(SIG_SETMASK, &mask, NULL);