summaryrefslogtreecommitdiff
path: root/tar
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2009-12-03 07:34:11 -0500
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2009-12-03 07:34:11 -0500
commitb63f60426299e77f87efb1790fd587129bdf5166 (patch)
tree7b2b53db13563a29e9583aaaf25adbc660a726ed /tar
parent364afebf48e5c6466206302a1bb6c63313249c7c (diff)
downloadlibarchive-b63f60426299e77f87efb1790fd587129bdf5166.tar.gz
Add archive_hash.h into libarchive/CMakefile.txt
SVN-Revision: 1694
Diffstat (limited to 'tar')
-rw-r--r--tar/tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tar/tree.c b/tar/tree.c
index da29c566..d77ba9c5 100644
--- a/tar/tree.c
+++ b/tar/tree.c
@@ -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);