Explorar o código

Fix build error on OSX in archive reader

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=13) %!d(string=hai) anos
pai
achega
1380931282
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/remote/hooks/libarchive/archive.cpp

+ 1 - 1
common/remote/hooks/libarchive/archive.cpp

@@ -391,7 +391,7 @@ static IFile *createIFileInArchive(const char *containedFileName)
         // Create an IFile representing the root of the archive as a directory
         struct archive_entry *rootEntry = archive_entry_new();
         archive_entry_set_pathname(rootEntry, ".");
-        archive_entry_set_mode(rootEntry, __S_IFDIR);
+        archive_entry_set_mode(rootEntry, S_IFDIR);
         archive_entry_set_size(rootEntry, 0);
         return new ArchiveFile(containedFileName, new ArchiveEntry(rootEntry));
     }