diff options
Diffstat (limited to 'ext/date/extconf.rb')
-rw-r--r-- | ext/date/extconf.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb index 8938df13b3..358f64173a 100644 --- a/ext/date/extconf.rb +++ b/ext/date/extconf.rb @@ -3,7 +3,10 @@ require 'mkmf' config_string("strict_warnflags") {|w| $warnflags += " #{w}"} -have_var("timezone", "time.h") -have_var("altzone", "time.h") +have_func("rb_category_warn") +with_werror("", {:werror => true}) do |opt, | + have_var("timezone", "time.h", opt) + have_var("altzone", "time.h", opt) +end create_makefile('date_core') |