]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
In libarchive 3.0, archive_entry_ino() returns int64_t instead of ino_t.
authorTim Kientzle <kientzle@gmail.com>
Wed, 17 Feb 2010 07:07:37 +0000 (02:07 -0500)
committerTim Kientzle <kientzle@gmail.com>
Wed, 17 Feb 2010 07:07:37 +0000 (02:07 -0500)
SVN-Revision: 1912

libarchive/archive_entry.c
libarchive/archive_entry.h

index 4ddc7597924ecb5e6a7a38a18a4d8aa646114b9b..b328b17dc2c791a979e9e307aeaf49469382d1bc 100644 (file)
@@ -643,11 +643,19 @@ archive_entry_hardlink_w(struct archive_entry *entry)
        return (NULL);
 }
 
+#if ARCHIVE_VERSION_NUMBER < 3000000
 ino_t
 archive_entry_ino(struct archive_entry *entry)
 {
        return (entry->ae_stat.aest_ino);
 }
+#else
+int64_t
+archive_entry_ino(struct archive_entry *entry)
+{
+       return (entry->ae_stat.aest_ino);
+}
+#endif
 
 int64_t
 archive_entry_ino64(struct archive_entry *entry)
index abd0be57ade58bbc664568441b6aa844a640d30f..c74bcca292c32f5b9f678c9bd9852f6622469a6d 100644 (file)
@@ -204,7 +204,11 @@ __LA_DECL const char       *archive_entry_gname(struct archive_entry *);
 __LA_DECL const wchar_t        *archive_entry_gname_w(struct archive_entry *);
 __LA_DECL const char   *archive_entry_hardlink(struct archive_entry *);
 __LA_DECL const wchar_t        *archive_entry_hardlink_w(struct archive_entry *);
+#if ARCHIVE_VERSION_NUMBER < 3000000
 __LA_DECL __LA_INO_T    archive_entry_ino(struct archive_entry *);
+#else
+__LA_DECL __LA_INT64_T  archive_entry_ino(struct archive_entry *);
+#endif
 __LA_DECL __LA_INT64_T  archive_entry_ino64(struct archive_entry *);
 __LA_DECL __LA_MODE_T   archive_entry_mode(struct archive_entry *);
 __LA_DECL time_t        archive_entry_mtime(struct archive_entry *);