diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-12-11 17:14:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-12-11 17:14:27 +0100 |
commit | 941aea2b975623a0c8bc24b140881ef0032a8bb8 (patch) | |
tree | 8448c57e29337e081c5e34d97bc4c01bfe219134 /src/fileio.c | |
parent | 91376b63877c113fe9a3fff2c1b04bf9504f447f (diff) | |
download | vim-git-941aea2b975623a0c8bc24b140881ef0032a8bb8.tar.gz |
patch 7.4.965v7.4.965
Problem: On FreeBSD /dev/fd/ files are special.
Solution: Use is_dev_fd_file() also for FreeBSD. (Derek Schrock, closes #521)
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index b3fc28750..922477771 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -27,7 +27,7 @@ /* Is there any system that doesn't have access()? */ #define USE_MCH_ACCESS -#if defined(sun) && defined(S_ISCHR) +#if (defined(sun) || defined(__FreeBSD__)) && defined(S_ISCHR) # define OPEN_CHR_FILES static int is_dev_fd_file(char_u *fname); #endif |