* ext/fcntl/fcntl.c (Init_fcntl): define Fcntl::ACCMODE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9c6cfb5672
commit
4f6558a4ec
@ -1,4 +1,6 @@
|
|||||||
Tue Oct 7 10:02:30 2003 Tanaka Akira <akr@m17n.org>
|
Tue Oct 7 12:23:47 2003 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
|
* ext/fcntl/fcntl.c (Init_fcntl): define Fcntl::ACCMODE.
|
||||||
|
|
||||||
* ext/socket/extconf.rb: useless assignment removed.
|
* ext/socket/extconf.rb: useless assignment removed.
|
||||||
|
|
||||||
|
@ -104,4 +104,9 @@ Init_fcntl()
|
|||||||
#ifdef O_WRONLY
|
#ifdef O_WRONLY
|
||||||
rb_define_const(mFcntl, "O_WRONLY", INT2NUM(O_WRONLY));
|
rb_define_const(mFcntl, "O_WRONLY", INT2NUM(O_WRONLY));
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef O_ACCMODE
|
||||||
|
rb_define_const(mFcntl, "ACCMODE", INT2FIX(O_ACCMODE));
|
||||||
|
#else
|
||||||
|
rb_define_const(mFcntl, "ACCMODE", INT2FIX(O_RDONLY | O_WRONLY | O_RDWR));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user