posix_mq RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] set correct condition for setting id_autoclose
@ 2017-03-18  7:57 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2017-03-18  7:57 UTC (permalink / raw)
  To: ruby-posix-mq

This bug was noticed under FreeBSD :x
---
 ext/posix_mq/posix_mq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");
-- 
EW


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-18  7:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-18  7:57 [PATCH] set correct condition for setting id_autoclose Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/ruby_posix_mq.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).