… | |
… | |
98 | supporting it. Support for kqueue will be detected at runtime, with a |
98 | supporting it. Support for kqueue will be detected at runtime, with a |
99 | safe fallback to other methods when it cannot be used. |
99 | safe fallback to other methods when it cannot be used. |
100 | |
100 | |
101 | EOF |
101 | EOF |
102 | |
102 | |
103 | if (prompt ("Enable kqueue backend (y/n)?", (-e "/usr/include/sys/event.h-disabled") ? "y" : "n") =~ /[yY]/) { |
103 | if (prompt ("Enable kqueue backend (y/n)?", (-e "/usr/include/sys/event.h") ? "y" : "n") =~ /[yY]/) { |
104 | $DEFINE .= " -DEV_USE_KQUEUE"; |
104 | $DEFINE .= " -DEV_USE_KQUEUE"; |
105 | } |
105 | } |
106 | |
106 | |
107 | print <<EOF; |
107 | print <<EOF; |
108 | |
108 | |