* io.c (Init_IO): define IO::BINARY even if O_BINARY is not exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
668bd7d992
commit
0d49e43be2
@ -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>
|
Fri Dec 21 14:01:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* test/ruby/test_system.rb (TestSystem::valid_syntax): apply
|
* test/ruby/test_system.rb (TestSystem::valid_syntax): apply
|
||||||
|
2
io.c
2
io.c
@ -6346,6 +6346,8 @@ Init_IO(void)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef O_BINARY
|
#ifdef O_BINARY
|
||||||
rb_file_const("BINARY", INT2FIX(O_BINARY));
|
rb_file_const("BINARY", INT2FIX(O_BINARY));
|
||||||
|
#else
|
||||||
|
rb_file_const("BINARY", INT2FIX(0));
|
||||||
#endif
|
#endif
|
||||||
#ifdef O_SYNC
|
#ifdef O_SYNC
|
||||||
rb_file_const("SYNC", INT2FIX(O_SYNC));
|
rb_file_const("SYNC", INT2FIX(O_SYNC));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user