]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add archive_hash.h into libarchive/CMakefile.txt
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 3 Dec 2009 12:34:11 +0000 (07:34 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 3 Dec 2009 12:34:11 +0000 (07:34 -0500)
SVN-Revision: 1694

libarchive/CMakeLists.txt
tar/tree.c

index ce3451ad286c51ddba50fa02cbd818d640949750..ed70fdfe5b9132dfad54fa323d5cd8e6fc5bc6d1 100644 (file)
@@ -23,6 +23,7 @@ SET(libarchive_SOURCES
   archive_entry_stat.c
   archive_entry_strmode.c
   archive_entry_xattr.c
+  archive_hash.h
   archive_platform.h
   archive_private.h
   archive_read.c
index da29c566953a307eaebd91aef592b4d57cae09e3..d77ba9c56dd01430a01730d31bd0a3b916ee1104 100644 (file)
@@ -738,9 +738,11 @@ int
 tree_current_is_physical_link(struct tree *t)
 {
 #if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(IO_REPARSE_TAG_SYMLINK)
        if (t->findData)
                return ((t->findData->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)
                                && (t->findData->dwReserved0 == IO_REPARSE_TAG_SYMLINK));
+#endif
        return (0);
 #else
        const struct stat *st = tree_current_lstat(t);