drop rb_str_set_len compatibility replacement
[unicorn.git] / ext / unicorn_http / extconf.rb
blob2fc60feb2fb6a9fd5a5875a1af81176f068ddfb6
1 # -*- encoding: binary -*-
2 require 'mkmf'
4 have_macro("SIZEOF_OFF_T", "ruby.h") or check_sizeof("off_t", "sys/types.h")
5 have_macro("SIZEOF_SIZE_T", "ruby.h") or check_sizeof("size_t", "sys/types.h")
6 have_macro("SIZEOF_LONG", "ruby.h") or check_sizeof("long", "sys/types.h")
7 have_func("rb_str_set_len", "ruby.h") or abort 'Ruby 1.9.3+ required'
8 have_func("rb_hash_clear", "ruby.h") # Ruby 2.0+
9 have_func("gmtime_r", "time.h")
11 create_makefile("unicorn_http")