From 67fa98eac519d6958f805f495e45b87146835432 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 3 Oct 2013 19:02:14 +0300 Subject: function.c (abspath): Reset root_len to one for Cygwin only when HAVE_DOS_PATHS is defined. Suggested by Christopher Faylor. --- function.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'function.c') diff --git a/function.c b/function.c index 1eceabba..36e0268a 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 -- cgit v1.2.1