ext/extconf.rb in brianmario-bzip2-ruby-0.2.4 vs ext/extconf.rb in brianmario-bzip2-ruby-0.2.5

- old
+ new

@@ -5,9 +5,14 @@ if have_library("bz2", "BZ2_bzWriteOpen") if enable_config("shared", true) $static = nil end - create_makefile("bzip2") + + if RUBY_VERSION =~ /1.9/ + $CFLAGS << ' -DRUBY_19_COMPATIBILITY' + end + + create_makefile("bzip2_ext") else puts "libbz2 not found, maybe try manually specifying --with-bz2-dir to find it?" end \ No newline at end of file