diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-06-29 12:00:49 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-06-29 12:00:49 +0000 |
commit | 0d1498ea69faad513f7e55c74c220990f9d89996 (patch) | |
tree | 5488e5b457f1c0a997e047f9e582be7e28e5b9ae /src/os_unix.c | |
parent | c4a87015f7e6cff9a5f6f0b44dd185db15d492ab (diff) | |
download | vim-git-0d1498ea69faad513f7e55c74c220990f9d89996.tar.gz |
updated for version 7.2a-009v7.2a.009
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index ef73270da..871e27421 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -58,7 +58,9 @@ static int selinux_enabled = -1; #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 + * for cygwin_conv_path() */ # endif #endif @@ -2312,7 +2314,11 @@ mch_FullName(fname, buf, len, force) /* * This helps for when "/etc/hosts" is a symlink to "c:/something/hosts". */ +# if CYGWIN_VERSION_DLL_MAJOR >= 1007 + cygwin_conv_path(CCP_WIN_A_TO_POSIX, fname, posix_fname, MAXPATHL); +# else cygwin_conv_to_posix_path(fname, posix_fname); +# endif fname = posix_fname; #endif |