summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--io.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 66eefad25..b87450720 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Dec 21 14:46:07 2007 Tanaka Akira <akr@fsij.org>
+
+ * io.c (Init_IO): define IO::BINARY even if O_BINARY is not exist.
+
Fri Dec 21 14:01:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* test/ruby/test_system.rb (TestSystem::valid_syntax): apply
diff --git a/io.c b/io.c
index b03dac5e9..5055b29fd 100644
--- a/io.c
+++ b/io.c
@@ -6346,6 +6346,8 @@ Init_IO(void)
#endif
#ifdef O_BINARY
rb_file_const("BINARY", INT2FIX(O_BINARY));
+#else
+ rb_file_const("BINARY", INT2FIX(0));
#endif
#ifdef O_SYNC
rb_file_const("SYNC", INT2FIX(O_SYNC));