about summary refs log tree commit homepage
path: root/ext/posix_mq/posix_mq.c
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-03-18 07:48:49 +0000
committerEric Wong <e@80x24.org>2017-03-18 07:55:49 +0000
commitcef65a3fb602b9a9f3348cf622a3c9215783aabf (patch)
treef18876a8019512c95f28c68bfa7f5f86dbfd4215 /ext/posix_mq/posix_mq.c
parentb8c64a2a3440bf65712a8be371d57430dca03998 (diff)
downloadruby_posix_mq-cef65a3fb602b9a9f3348cf622a3c9215783aabf.tar.gz
This bug was noticed under FreeBSD :x
Diffstat (limited to 'ext/posix_mq/posix_mq.c')
-rw-r--r--ext/posix_mq/posix_mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/posix_mq/posix_mq.c b/ext/posix_mq/posix_mq.c
index 0567676..55ec51e 100644
--- a/ext/posix_mq/posix_mq.c
+++ b/ext/posix_mq/posix_mq.c
@@ -1213,11 +1213,11 @@ void Init_posix_mq_ext(void)
         rb_define_method(cPOSIX_MQ, "autoclose=", setautoclose, 1);
 #ifdef MQD_TO_FD
         rb_define_method(cPOSIX_MQ, "to_io", to_io, 0);
+        id_setautoclose = rb_intern("autoclose=");
 #endif
 
 #ifdef FD_TO_MQD
         rb_define_module_function(cPOSIX_MQ, "for_fd", for_fd, 1);
-        id_setautoclose = rb_intern("autoclose=");
 #endif
 
         id_new = rb_intern("new");