summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-21 13:59:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-21 13:59:41 +0000
commit68f67044787b51d60860ccd3d6dfaee9816f06e2 (patch)
treed429620303eb49022f86cf5cfe972429d33e4646
parent59d3fd1832859272bff57bbc00d23bb73a15cc45 (diff)
* signal.c (ruby_signal): must define sighandler_t unless
POSIX_SIGNAL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--signal.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e4e905ede..377a2db83b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jan 21 22:57:18 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
+
+ * signal.c (ruby_signal): must define sighandler_t unless
+ POSIX_SIGNAL.
+
Mon Jan 21 08:25:30 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (ruby_stop): should not trace error handler.
diff --git a/signal.c b/signal.c
index 265e1fbf84..7d3b424725 100644
--- a/signal.c
+++ b/signal.c
@@ -281,9 +281,9 @@ rb_gc_mark_trap_list()
#endif /* MACOS_UNUSE_SIGNAL */
}
-#ifdef POSIX_SIGNAL
typedef RETSIGTYPE (*sighandler_t)_((int));
+#ifdef POSIX_SIGNAL
static sighandler_t
ruby_signal(signum, handler)
int signum;