Browse Source

Fix build error on OSX in archive reader

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 13 years ago
parent
commit
1380931282
1 changed files with 1 additions and 1 deletions
  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));
     }