Top Level Namespace
- Includes:
- FileUtils
Defined Under Namespace
Modules: Archive
Instance Method Summary collapse
Instance Method Details
#patch_libarchive_reader_for_mac ⇒ Object
5 6 7 8 9 |
# File 'ext/extconf.rb', line 5 def return unless `uname` =~ /Darwin/ text = File.read("libarchive_reader.c") File.open("libarchive_reader.c", 'w') { |f| f.puts text.gsub(/_close\(fd\);/, "close(fd);") } end |