prepare for rb_thread_blocking_region removal
[ruby_io_splice.git] / ext / io_splice / extconf.rb
blobbfd655a934e6eff6cc6af34a3037255f5b76abe9
1 require 'mkmf'
2 $CPPFLAGS << ' -D_GNU_SOURCE=1'
4 have_func('splice', %w(fcntl.h)) or abort 'splice(2) not defined'
5 have_func('tee', %w(fcntl.h)) or abort 'tee(2) not defined'
6 have_func('pipe2', %w(fcntl.h unistd.h))
7 have_func('rb_thread_blocking_region')
8 have_func('rb_thread_call_without_gvl')
9 have_macro('F_GETPIPE_SZ', %w(fcntl.h))
10 have_macro('F_SETPIPE_SZ', %w(fcntl.h))
12 create_makefile('io_splice_ext')