comparison src/os_unix.c @ 1657:c3e225bc213a v7.2a.009

updated for version 7.2a-009
author vimboss
date Sun, 29 Jun 2008 12:00:49 +0000
parents 73fe8baea242
children f4f8014d516e
comparison
equal deleted inserted replaced
1656:eb6fc577c96c 1657:c3e225bc213a
56 # endif 56 # endif
57 #endif 57 #endif
58 58
59 #ifdef __CYGWIN__ 59 #ifdef __CYGWIN__
60 # ifndef WIN32 60 # ifndef WIN32
61 # include <sys/cygwin.h> /* for cygwin_conv_to_posix_path() */ 61 # include <cygwin/version.h>
62 # include <sys/cygwin.h> /* for cygwin_conv_to_posix_path() and/or
63 * for cygwin_conv_path() */
62 # endif 64 # endif
63 #endif 65 #endif
64 66
65 #if defined(HAVE_SELECT) 67 #if defined(HAVE_SELECT)
66 extern int select __ARGS((int, fd_set *, fd_set *, fd_set *, struct timeval *)); 68 extern int select __ARGS((int, fd_set *, fd_set *, fd_set *, struct timeval *));
2310 2312
2311 #ifdef __CYGWIN__ 2313 #ifdef __CYGWIN__
2312 /* 2314 /*
2313 * This helps for when "/etc/hosts" is a symlink to "c:/something/hosts". 2315 * This helps for when "/etc/hosts" is a symlink to "c:/something/hosts".
2314 */ 2316 */
2317 # if CYGWIN_VERSION_DLL_MAJOR >= 1007
2318 cygwin_conv_path(CCP_WIN_A_TO_POSIX, fname, posix_fname, MAXPATHL);
2319 # else
2315 cygwin_conv_to_posix_path(fname, posix_fname); 2320 cygwin_conv_to_posix_path(fname, posix_fname);
2321 # endif
2316 fname = posix_fname; 2322 fname = posix_fname;
2317 #endif 2323 #endif
2318 2324
2319 /* expand it if forced or not an absolute path */ 2325 /* expand it if forced or not an absolute path */
2320 if (force || !mch_isFullName(fname)) 2326 if (force || !mch_isFullName(fname))