Commits

Chris Walquist  committed 803d2af

use close() with open(); _close() symbol doesn't resolve when compiling on Mac

  • Participants
  • Parent commits 82c3bc7

Comments (0)

Files changed (1)

File ext/libarchive_reader.c

   }
 
   r = archive_read_data_into_fd(p->ar, fd);
-  _close(fd);
+  close(fd);
 
   if (r != ARCHIVE_OK) {
     rb_raise(rb_eArchiveError, "Save data failed: %s", archive_error_string(p->ar));