diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-04 10:47:26 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-04 10:47:26 +0100 |
commit | 82c38fe508155c11a904e6111b5bfb6adde3fb9a (patch) | |
tree | 818661460a865d7096bc13737d56199d4b009125 /src/fileio.c | |
parent | bb0956fc65ebe8df1da823f9c4d6a0013d9ba5c1 (diff) |
patch 8.2.2294: VMS: a few remaining problemsv8.2.2294
Problem: VMS: a few remaining problems.
Solution: Add VMS specific changes. Add Lua support. (Zoltan Arpadffy)
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index b3b7100d64..1af0b4c59f 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -16,10 +16,13 @@ #if defined(__TANDEM) # include <limits.h> // for SSIZE_MAX #endif -#if defined(UNIX) && defined(FEAT_EVAL) +#if (defined(UNIX) || defined(VMS)) && defined(FEAT_EVAL) # include <pwd.h> # include <grp.h> #endif +#if defined(VMS) && defined(HAVE_XOS_R_H) +# include <x11/xos_r.h> +#endif // Is there any system that doesn't have access()? #define USE_MCH_ACCESS @@ -338,7 +341,7 @@ readfile( if (!read_stdin && !read_buffer && !read_fifo) { -#ifdef UNIX +#if defined(UNIX) || defined(VMS) /* * On Unix it is possible to read a directory, so we have to * check for it before the mch_open(). @@ -4623,11 +4626,13 @@ create_readdirex_item(char_u *path, char_u *name) q = (char_u*)pw->pw_name; if (dict_add_string(item, "user", q) == FAIL) goto theend; +# if !defined(VMS) || (defined(VMS) && defined(HAVE_XOS_R_H)) gr = getgrgid(st.st_gid); if (gr == NULL) q = (char_u*)""; else q = (char_u*)gr->gr_name; +# endif if (dict_add_string(item, "group", q) == FAIL) goto theend; } |