… | |
… | |
204 | (similar problems as on FreeBSD). |
204 | (similar problems as on FreeBSD). |
205 | OS X: completely, utterly broken on at least <= 10.6. |
205 | OS X: completely, utterly broken on at least <= 10.6. |
206 | |
206 | |
207 | EOF |
207 | EOF |
208 | |
208 | |
|
|
209 | # minix has all the header files, but no implementation. won-der-ful. |
209 | my $can_kqueue = have_inc "sys/event.h"; |
210 | my $can_kqueue = have_inc "sys/event.h" && $^O ne "minix"; |
210 | $can_kqueue = $ENV{EV_KQUEUE} if exists $ENV{EV_KQUEUE}; |
211 | $can_kqueue = $ENV{EV_KQUEUE} if exists $ENV{EV_KQUEUE}; |
211 | $DEFINE .= " -DEV_USE_KQUEUE=" . (0 + (prompt ("Enable kqueue backend (y/n)?", $can_kqueue ? "y" : "n") =~ /[yY]/)); |
212 | $DEFINE .= " -DEV_USE_KQUEUE=" . (0 + (prompt ("Enable kqueue backend (y/n)?", $can_kqueue ? "y" : "n") =~ /[yY]/)); |
212 | |
213 | |
213 | print <<EOF; |
214 | print <<EOF; |
214 | |
215 | |