diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-07 03:30:55 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-07 03:30:55 +0000 |
commit | 0a5f6fd37d7b83dd78adfbaecb050fd3cc4fb3e9 (patch) | |
tree | 0d0ac40a8ae252afd0cc0c06b56ba30817e020e4 | |
parent | 4f6558a4eca8cdee8dba8eab202b23a68f13f64d (diff) | |
download | ruby-0a5f6fd37d7b83dd78adfbaecb050fd3cc4fb3e9.tar.gz |
define Fcntl::O_ACCMODE instead of Fcntl::ACCMODE to be consist with
other constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | ext/fcntl/fcntl.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ Tue Oct 7 12:23:47 2003 Tanaka Akira <akr@m17n.org> - * ext/fcntl/fcntl.c (Init_fcntl): define Fcntl::ACCMODE. + * ext/fcntl/fcntl.c (Init_fcntl): define Fcntl::O_ACCMODE. * ext/socket/extconf.rb: useless assignment removed. diff --git a/ext/fcntl/fcntl.c b/ext/fcntl/fcntl.c index ca7b12bde1..d48630fc66 100644 --- a/ext/fcntl/fcntl.c +++ b/ext/fcntl/fcntl.c @@ -105,8 +105,8 @@ Init_fcntl() rb_define_const(mFcntl, "O_WRONLY", INT2NUM(O_WRONLY)); #endif #ifdef O_ACCMODE - rb_define_const(mFcntl, "ACCMODE", INT2FIX(O_ACCMODE)); + rb_define_const(mFcntl, "O_ACCMODE", INT2FIX(O_ACCMODE)); #else - rb_define_const(mFcntl, "ACCMODE", INT2FIX(O_RDONLY | O_WRONLY | O_RDWR)); + rb_define_const(mFcntl, "O_ACCMODE", INT2FIX(O_RDONLY | O_WRONLY | O_RDWR)); #endif } |