diff options
Diffstat (limited to 'ext/sleepy_penguin/extconf.rb')
-rw-r--r-- | ext/sleepy_penguin/extconf.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/sleepy_penguin/extconf.rb b/ext/sleepy_penguin/extconf.rb index 2ed9b21..0e6977a 100644 --- a/ext/sleepy_penguin/extconf.rb +++ b/ext/sleepy_penguin/extconf.rb @@ -13,6 +13,11 @@ have_header('sys/eventfd.h') have_header('sys/timerfd.h') have_header('sys/inotify.h') have_header('ruby/io.h') and have_struct_member('rb_io_t', 'fd', 'ruby/io.h') +unless have_macro('CLOCK_MONOTONIC', 'time.h') + have_func('CLOCK_MONOTONIC', 'time.h') +end +have_type('clockid_t', 'time.h') +have_func('clock_gettime', 'time.h') have_func('epoll_create1', %w(sys/epoll.h)) have_func('rb_thread_call_without_gvl') have_func('rb_thread_blocking_region') |