Mercurial > vim
changeset 7320:cc484bbb73dc v7.4.965
commit https://github.com/vim/vim/commit/941aea2b975623a0c8bc24b140881ef0032a8bb8
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 11 17:14:27 2015 +0100
patch 7.4.965
Problem: On FreeBSD /dev/fd/ files are special.
Solution: Use is_dev_fd_file() also for FreeBSD. (Derek Schrock, closes https://github.com/vim/vim/issues/521)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 11 Dec 2015 17:15:04 +0100 |
parents | 3d7c9075466b |
children | 3eb18453ecc6 |
files | src/fileio.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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