From: Michihiro NAKAJIMA Date: Thu, 17 Dec 2009 12:17:40 +0000 (-0500) Subject: Add IO_REPARSE_TAG_SYMLINK macro if not defined. X-Git-Tag: v2.8.0~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=156ed1c6fbe2d9b1719ac32236093b32382fcde2;p=thirdparty%2Flibarchive.git Add IO_REPARSE_TAG_SYMLINK macro if not defined. Old Windows SDKs do not provide IO_REPARSE_TAG_SYMLINK. SVN-Revision: 1758 --- diff --git a/tar/tree.c b/tar/tree.c index da29c5669..5cd6cadf4 100644 --- a/tar/tree.c +++ b/tar/tree.c @@ -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));