diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-21 13:13:10 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-04-21 04:21:05 +0000 |
commit | 9702a8142b8a4e97cde983300849590bfe73b8b1 (patch) | |
tree | d6a9d32e25fcfb358b9f20d41462fb4fe9893eaa /ext/fcntl/fcntl.c | |
parent | 072ef7a1aad9c2a9296d1df29996da4068c50b94 (diff) | |
download | ruby-9702a8142b8a4e97cde983300849590bfe73b8b1.tar.gz |
[ruby/fcntl] Expose Fcntl::VERSION
https://github.com/ruby/fcntl/commit/cb8e414e9f
Diffstat (limited to 'ext/fcntl/fcntl.c')
-rw-r--r-- | ext/fcntl/fcntl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/fcntl/fcntl.c b/ext/fcntl/fcntl.c index 3bccc41e4c..4ea7b29bf5 100644 --- a/ext/fcntl/fcntl.c +++ b/ext/fcntl/fcntl.c @@ -61,10 +61,16 @@ pack up your own arguments to pass as args for locking functions, etc. * f.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK|m) * */ + +#define FCNTL_VERSION "1.0.2" + void Init_fcntl(void) { VALUE mFcntl = rb_define_module("Fcntl"); + + rb_define_const(mFcntl, "VERSION", rb_str_new_cstr(FCNTL_VERSION)); + #ifdef F_DUPFD /* Document-const: F_DUPFD * |