aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-08 14:27:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-08 14:27:25 +0000
commit90ca8317d37d3f649e9ec52ce01b1003194c70ac (patch)
tree011da60fe28c0df58fbd8ab582aa22ce30141518
parent6a852b7c2b46faa1876763e46e1847cbab77b071 (diff)
downloadruby-90ca8317d37d3f649e9ec52ce01b1003194c70ac.tar.gz
* io.c (shutdown): not define if defined already.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18443 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 c757450403..90557a5da0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Aug 8 23:27:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (shutdown): not define if defined already.
+
Fri Aug 8 22:47:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_insnhelper.c (opt_eq_func): large function to make inline.
diff --git a/io.c b/io.c
index 380755a599..77b85de9e3 100644
--- a/io.c
+++ b/io.c
@@ -199,7 +199,7 @@ static int max_file_descriptor = NOFILE;
# endif
#endif
-#ifndef HAVE_SHUTDOWN
+#if !defined HAVE_SHUTDOWN && !defined shutdown
#define shutdown(a,b) 0
#endif