]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add IO_REPARSE_TAG_SYMLINK macro if not defined.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 17 Dec 2009 12:17:40 +0000 (07:17 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Thu, 17 Dec 2009 12:17:40 +0000 (07:17 -0500)
Old Windows SDKs do not provide IO_REPARSE_TAG_SYMLINK.

SVN-Revision: 1758

tar/tree.c

index da29c566953a307eaebd91aef592b4d57cae09e3..5cd6cadf4d6858459cb15ec27f9ad22bc6c9b0a6 100644 (file)
@@ -738,6 +738,10 @@ int
 tree_current_is_physical_link(struct tree *t)
 {
 #if defined(_WIN32) && !defined(__CYGWIN__)
+#ifndef IO_REPARSE_TAG_SYMLINK
+/* Old SDKs do not provide IO_REPARSE_TAG_SYMLINK */
+#define IO_REPARSE_TAG_SYMLINK 0xA000000CL
+#endif
        if (t->findData)
                return ((t->findData->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)
                                && (t->findData->dwReserved0 == IO_REPARSE_TAG_SYMLINK));