io-event
io-event copied to clipboard
not compiling on freebsd since #95
#95 broke compilation on freebsd:
$ make -C ~/.gem/ruby/3.1/gems/io-event-1.4.4/ext/
compiling ./io/event/selector/selector.c
./io/event/selector/selector.c:77:82: error: use of undeclared identifier 'WNOHANG'
return rb_funcall(rb_Process_Status, id_wait, 2, PIDT2NUM(pid), INT2NUM(flags | WNOHANG));
^
1 error generated.
*** Error code 1
Stop.
when i revert #95 it compiles:
$ make -C ~/.gem/ruby/3.1/gems/io-event-1.4.4/ext/
compiling ./io/event/selector/selector.c
compiling ./io/event/selector/kqueue.c
compiling ./io/event/interrupt.c
linking shared-object IO_Event.so
$ ruby -v
ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [amd64-freebsd13]
Thanks I will take a look.
I believe this should be fixed in the latest release, are you able to try again?
Feel free to open a new issue if this problem is not fixed.