summaryrefslogtreecommitdiffstats
path: root/ext/fcntl
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-07 03:30:55 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-07 03:30:55 +0000
commita13ab1d72504b27315fa4c6ab88fbf933f0632de (patch)
tree0d0ac40a8ae252afd0cc0c06b56ba30817e020e4 /ext/fcntl
parentd9bf7c3bd1583e4fef7bac6f8a7eb8f787308f2e (diff)
downloadruby-a13ab1d72504b27315fa4c6ab88fbf933f0632de.tar.gz
ruby-a13ab1d72504b27315fa4c6ab88fbf933f0632de.tar.xz
ruby-a13ab1d72504b27315fa4c6ab88fbf933f0632de.zip
define Fcntl::O_ACCMODE instead of Fcntl::ACCMODE to be consist with
other constants. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fcntl')
-rw-r--r--ext/fcntl/fcntl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fcntl/fcntl.c b/ext/fcntl/fcntl.c
index ca7b12bde..d48630fc6 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
}