From 863e24b2b1a1b946c89d32575c2814b564a1bf95 Mon Sep 17 00:00:00 2001 From: normal Date: Mon, 14 May 2018 23:51:35 +0000 Subject: test_wait_for_single_fd: ensure this works with kqueue Regardless of future features, this needs to work with kqueue descriptors across platforms. Today this will be useful for 3rd-party libraries using kqueue. In the future, Ruby may use kqueue natively and we shall ensure we can wait on it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/-test-/wait_for_single_fd/extconf.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/-test-/wait_for_single_fd/extconf.rb') diff --git a/ext/-test-/wait_for_single_fd/extconf.rb b/ext/-test-/wait_for_single_fd/extconf.rb index 931662c040..2a976c8f4b 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") -- cgit v1.2.3