io-event icon indicating copy to clipboard operation
io-event copied to clipboard

not compiling on freebsd since #95

Open glaszig opened this issue 1 year ago • 3 comments

#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

glaszig avatar Feb 23 '24 21:02 glaszig

$ ruby -v
ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [amd64-freebsd13]

glaszig avatar Feb 23 '24 21:02 glaszig

Thanks I will take a look.

ioquatix avatar Feb 23 '24 22:02 ioquatix

I believe this should be fixed in the latest release, are you able to try again?

ioquatix avatar Jun 12 '24 13:06 ioquatix

Feel free to open a new issue if this problem is not fixed.

ioquatix avatar Oct 05 '24 22:10 ioquatix