27127c88f03b7a6b86405fe07f9739c0a1f08528
[ruby_io_splice.git] / ext / io_splice / extconf.rb
blob27127c88f03b7a6b86405fe07f9739c0a1f08528
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('rb_thread_blocking_region')
7 have_macro('F_GETPIPE_SZ', %w(fcntl.h))
8 have_macro('F_SETPIPE_SZ', %w(fcntl.h))
10 create_makefile('io_splice_ext')