summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-06-29 12:00:49 +0000
committerBram Moolenaar <Bram@vim.org>2008-06-29 12:00:49 +0000
commit0d1498ea69faad513f7e55c74c220990f9d89996 (patch)
tree5488e5b457f1c0a997e047f9e582be7e28e5b9ae /src/main.c
parentc4a87015f7e6cff9a5f6f0b44dd185db15d492ab (diff)
updated for version 7.2a-009v7.2a.009
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 31c11c7846..53d1848796 100644
--- a/src/main.c
+++ b/src/main.c
@@ -20,7 +20,9 @@
#ifdef __CYGWIN__
# ifndef WIN32
-# include <sys/cygwin.h> /* for cygwin_conv_to_posix_path() */
+# include <cygwin/version.h>
+# include <sys/cygwin.h> /* for cygwin_conv_to_posix_path() and/or
+ * cygwin_conv_path() */
# endif
# include <limits.h>
#endif
@@ -2213,7 +2215,11 @@ scripterror:
{
char posix_path[PATH_MAX];
+# if CYGWIN_VERSION_DLL_MAJOR >= 1007
+ cygwin_conv_path(CCP_WIN_A_TO_POSIX, p, posix_path, PATH_MAX);
+# else
cygwin_conv_to_posix_path(p, posix_path);
+# endif
vim_free(p);
p = vim_strsave(posix_path);
if (p == NULL)