From: Bram Moolenaar Date: Fri, 11 Dec 2015 16:14:27 +0000 (+0100) Subject: patch 7.4.965 X-Git-Tag: v7.4.965 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=941aea2b975623a0c8bc24b140881ef0032a8bb8;p=vim patch 7.4.965 Problem: On FreeBSD /dev/fd/ files are special. Solution: Use is_dev_fd_file() also for FreeBSD. (Derek Schrock, closes #521) --- 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 diff --git a/src/version.c b/src/version.c index 3fc57c5e5..049e76600 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 965, /**/ 964, /**/