diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-11-04 20:35:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-11-04 20:35:31 +0100 |
commit | de5e2c219b99895445fb75ae3541ee69282a5846 (patch) | |
tree | 66c568296d890abef12e5d04f7e62256e28b45e1 /src/os_unix.c | |
parent | 91e44a3305ef6bf2d43496c351dcff0a45c6bfb8 (diff) | |
download | vim-de5e2c219b99895445fb75ae3541ee69282a5846.zip |
patch 8.0.0059
Problem: Vim does not build on VMS systems.
Solution: Various changes for VMS. (Zoltan Arpadffy)
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 6b26b0620..c6beba2cc 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -501,7 +501,7 @@ mch_inchar( /* no character available */ #if !(defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H)) /* estimate the elapsed time */ - elapsed += wait_time; + elapsed_time += wait_time; #endif if (do_resize /* interrupted by SIGWINCH signal */ @@ -2644,7 +2644,7 @@ fname_case( DIR *dirp; struct dirent *dp; - if (lstat((char *)name, &st) >= 0) + if (mch_lstat((char *)name, &st) >= 0) { /* Open the directory where the file is located. */ slash = vim_strrchr(name, '/'); @@ -2677,7 +2677,7 @@ fname_case( vim_strncpy(newname, name, MAXPATHL); vim_strncpy(newname + (tail - name), (char_u *)dp->d_name, MAXPATHL - (tail - name)); - if (lstat((char *)newname, &st2) >= 0 + if (mch_lstat((char *)newname, &st2) >= 0 && st.st_ino == st2.st_ino && st.st_dev == st2.st_dev) { @@ -3040,7 +3040,7 @@ mch_isrealdir(char_u *name) if (*name == NUL) /* Some stat()s don't flag "" as an error. */ return FALSE; - if (lstat((char *)name, &statb)) + if (mch_lstat((char *)name, &statb)) return FALSE; #ifdef _POSIX_SOURCE return (S_ISDIR(statb.st_mode) ? TRUE : FALSE); @@ -4098,6 +4098,7 @@ mch_call_shell( int tmode = cur_tmode; #ifdef USE_SYSTEM /* use system() to start the shell: simple but slow */ char_u *newcmd; /* only needed for unix */ + int x; out_flush(); |