summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-10-03 19:02:14 +0300
committerEli Zaretskii <eliz@gnu.org>2013-10-03 19:02:14 +0300
commitf96c114e22c26dbcd18b7c16590b5e0ef0c58fe9 (patch)
tree1c9b0325a98b9d3b86a446204b792ff41ab4b4d3
parent98197303b145c488740b93fb45d2d72cde243dcc (diff)
downloadgunmake-f96c114e22c26dbcd18b7c16590b5e0ef0c58fe9.tar.gz
function.c (abspath): Reset root_len to one for Cygwin only when
HAVE_DOS_PATHS is defined. Suggested by Christopher Faylor.
-rw-r--r--ChangeLog5
-rw-r--r--function.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f9b6e34..7d92dcf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-03 Eli Zaretskii <eliz@gnu.org>
+
+ * function.c (abspath): Reset root_len to one for Cygwin only when
+ HAVE_DOS_PATHS is defined. Suggested by Christopher Faylor.
+
2013-10-02 Eli Zaretskii <eliz@gnu.org>
* w32/compat/posixfcn.c (tmpfile): New function, a replacement for
diff --git a/function.c b/function.c
index 1eceabb..36e0268 100644
--- a/function.c
+++ b/function.c
@@ -2005,7 +2005,7 @@ abspath (const char *name, char *apath)
}
else
{
-#ifdef __CYGWIN__
+#if defined(__CYGWIN__) && defined(HAVE_DOS_PATHS)
if (STOP_SET (name[0], MAP_PATHSEP))
root_len = 1;
#endif