]> granicus.if.org Git - vim/commitdiff
patch 7.4.965 v7.4.965
authorBram Moolenaar <Bram@vim.org>
Fri, 11 Dec 2015 16:14:27 +0000 (17:14 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 11 Dec 2015 16:14:27 +0000 (17:14 +0100)
Problem:    On FreeBSD /dev/fd/ files are special.
Solution:   Use is_dev_fd_file() also for FreeBSD. (Derek Schrock, closes #521)

src/fileio.c
src/version.c

index b3fc2875041aec25cd6389ca35d31afe39865892..922477771141dc972667fb61963c718fdc6cf5a5 100644 (file)
@@ -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
index 3fc57c5e5b54279be5226c9ceab6d47bb9d9bd7a..049e76600399053c9c0208f2fc88b3ad8e45552f 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    965,
 /**/
     964,
 /**/