Top Level Namespace

Includes:
FileUtils

Defined Under Namespace

Modules: Archive

Instance Method Summary collapse

Instance Method Details

#patch_libarchive_reader_for_macObject


5
6
7
8
9
# File 'ext/extconf.rb', line 5

def patch_libarchive_reader_for_mac
  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