about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-06 22:21:39 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-09 01:20:06 -0700
commite1d67bef994587ba77e1a3575773755b2b5e1558 (patch)
tree7e3d7e99005f0727537240c2eafcdd61e3d49114
parent718d5e9b6c863e388984e641d36b6e6cbacd99c7 (diff)
downloadunicorn-e1d67bef994587ba77e1a3575773755b2b5e1558.tar.gz
Only fallback to check_sizeof() if it is not.  check_sizeof() is
broken in Ruby 1.9.2preview1 (but fixed in trunk).
-rw-r--r--ext/unicorn_http/extconf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/unicorn_http/extconf.rb b/ext/unicorn_http/extconf.rb
index 39bd510..2435925 100644
--- a/ext/unicorn_http/extconf.rb
+++ b/ext/unicorn_http/extconf.rb
@@ -1,6 +1,7 @@
 require 'mkmf'
 
 dir_config("unicorn_http")
-check_sizeof("off_t", "sys/types.h")
+
+have_macro("SIZEOF_OFF_T", "ruby.h") or check_sizeof("off_t", "sys/types.h")
 have_func("rb_str_set_len", "ruby.h")
 create_makefile("unicorn_http")