summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-29 17:18:34 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-29 17:18:34 (GMT)
commit64b5118c78e4e56a7967166b3df2e1bfe73fa36b (patch)
treeaf0f6ecd76b4c1ba7d30c15a074712b784d536f2 /Utilities/cmtar
parent6946eb209a58fce78c69fb5c799cefce4f32648c (diff)
downloadCMake-64b5118c78e4e56a7967166b3df2e1bfe73fa36b.zip
CMake-64b5118c78e4e56a7967166b3df2e1bfe73fa36b.tar.gz
CMake-64b5118c78e4e56a7967166b3df2e1bfe73fa36b.tar.bz2
COMP: More cygwin fixes
Diffstat (limited to 'Utilities/cmtar')
-rw-r--r--Utilities/cmtar/append.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmtar/append.c b/Utilities/cmtar/append.c
index be249ed..6dbf1dd 100644
--- a/Utilities/cmtar/append.c
+++ b/Utilities/cmtar/append.c
@@ -78,7 +78,7 @@ tar_append_file(TAR *t, char *realname, char *savename)
(savename ? savename : "[NULL]"));
#endif
-#ifdef WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
if (stat(realname, &s) != 0)
#else
if (lstat(realname, &s) != 0)
@@ -157,7 +157,7 @@ tar_append_file(TAR *t, char *realname, char *savename)
/* check if it's a symlink */
if (TH_ISSYM(t))
{
-#ifdef WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
i = -1;
#else
i = readlink(realname, path, sizeof(path));