52dab838c14b7e5dd686e086b635669b1a763d7f
[ruby_io_splice.git] / ext / io_splice / extconf.rb
blob52dab838c14b7e5dd686e086b635669b1a763d7f
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_macro('F_GETPIPE_SZ', %w(fcntl.h))
9 have_macro('F_SETPIPE_SZ', %w(fcntl.h))
11 create_makefile('io_splice_ext')