From 0d49e43be2440a7b2828d7568abbda9e321b486a Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 21 Dec 2007 05:47:15 +0000 Subject: * 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 --- io.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index b03dac5e94..5055b29fdc 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)); -- cgit v1.2.3