summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-14 07:02:54 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-14 07:02:54 +0000
commitfb7f3bf37cff4d10092f631439c0995aa97d6662 (patch)
tree6c24cc41452269a1f451ec88da0fce61cf8d69e3
parentb642a73820895c78d66ad9b949a07b7cf84886ff (diff)
* io.c (rb_f_syscall): reduce warning: "HAVE___SYSCALL" is not defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--io.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b47a439cd..cdc11e4739 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Apr 14 16:01:45 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * io.c (rb_f_syscall): reduce warning: "HAVE___SYSCALL" is not defined.
+
Thu Apr 14 00:41:09 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* thread.c (thread_fd_close_i): IOError exception should be assigned
diff --git a/io.c b/io.c
index a958b0f276..6a4ca44bf4 100644
--- a/io.c
+++ b/io.c
@@ -7853,7 +7853,7 @@ rb_f_syscall(int argc, VALUE *argv)
#else
VALUE arg[8];
#endif
-#if SIZEOF_VOIDP == 8 && HAVE___SYSCALL && SIZEOF_INT != 8 /* mainly *BSD */
+#if SIZEOF_VOIDP == 8 && defined(HAVE___SYSCALL) && SIZEOF_INT != 8 /* mainly *BSD */
# define SYSCALL __syscall
# define NUM2SYSCALLID(x) NUM2LONG(x)
# define RETVAL2NUM(x) LONG2NUM(x)