summaryrefslogtreecommitdiff
path: root/ext/-test-/wait_for_single_fd/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/-test-/wait_for_single_fd/extconf.rb')
-rw-r--r--ext/-test-/wait_for_single_fd/extconf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/-test-/wait_for_single_fd/extconf.rb b/ext/-test-/wait_for_single_fd/extconf.rb
index 931662c..2a976c8 100644
--- a/ext/-test-/wait_for_single_fd/extconf.rb
+++ b/ext/-test-/wait_for_single_fd/extconf.rb
@@ -1,2 +1,4 @@
# frozen_string_literal: false
+headers = %w(sys/types.h sys/time.h sys/event.h).select { |h| have_header(h) }
+have_func('kqueue', headers)
create_makefile("-test-/wait_for_single_fd")