socketry / io-event

MIT License
66 stars 15 forks source link

not compiling on freebsd since #95 #99

Open glaszig opened 6 months ago

glaszig commented 6 months ago

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 commented 6 months ago
$ ruby -v
ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [amd64-freebsd13]
ioquatix commented 6 months ago

Thanks I will take a look.

ioquatix commented 3 months ago

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