]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Starting with libarchive 3.0, archive_entry_set_ino() takes an int64_t
authorTim Kientzle <kientzle@gmail.com>
Wed, 17 Feb 2010 07:04:17 +0000 (02:04 -0500)
committerTim Kientzle <kientzle@gmail.com>
Wed, 17 Feb 2010 07:04:17 +0000 (02:04 -0500)
instead of ino_t.

SVN-Revision: 1911

libarchive/archive_entry.c

index 445be04a6acd212688cab6eb0dc58211b164fc34..4ddc7597924ecb5e6a7a38a18a4d8aa646114b9b 100644 (file)
@@ -847,12 +847,21 @@ archive_entry_update_gname_utf8(struct archive_entry *entry, const char *name)
        return (aes_update_utf8(&entry->ae_gname, name));
 }
 
+#if ARCHIVE_VERSION_NUMBER < 3000000
 void
 archive_entry_set_ino(struct archive_entry *entry, unsigned long ino)
 {
        entry->stat_valid = 0;
        entry->ae_stat.aest_ino = ino;
 }
+#else
+void
+archive_entry_set_ino(struct archive_entry *entry, int64_t ino)
+{
+       entry->stat_valid = 0;
+       entry->ae_stat.aest_ino = ino;
+}
+#endif
 
 void
 archive_entry_set_ino64(struct archive_entry *entry, int64_t ino)