]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix build failure when readdir_r() is not available.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 29 Apr 2011 03:48:02 +0000 (23:48 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 29 Apr 2011 03:48:02 +0000 (23:48 -0400)
SVN-Revision: 3273

libarchive/archive_read_disk_posix.c

index 1bb854fcf748cb6ffea102a087476c0b2c8c3368..d51b6c56ed9eb1cbe91ba0323276ea9e79d1704f 100644 (file)
@@ -1290,6 +1290,7 @@ setup_current_filesystem(struct archive_read_disk *a)
        else
                t->current_filesystem->noatime = 0;
 
+#if defined(HAVE_READDIR_R)
        /* Set maximum filename length. */
 #if defined(HAVE_STRUCT_STATFS_F_NAMEMAX)
        t->current_filesystem->name_max = sfs.f_namemax;
@@ -1304,6 +1305,7 @@ setup_current_filesystem(struct archive_read_disk *a)
        else
                t->current_filesystem->name_max = nm;
 #endif
+#endif /* HAVE_READDIR_R */
        return (ARCHIVE_OK);
 }