COMP: More cygwin fixes

This commit is contained in:
Andy Cedilnik 2005-12-29 12:18:34 -05:00
parent 6946eb209a
commit 64b5118c78
1 changed files with 2 additions and 2 deletions

View File

@ -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));