Skip to content

Commit 941aea2

Browse files
committed
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)
1 parent 91376b6 commit 941aea2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/fileio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/* Is there any system that doesn't have access()? */
2828
#define USE_MCH_ACCESS
2929

30-
#if defined(sun) && defined(S_ISCHR)
30+
#if (defined(sun) || defined(__FreeBSD__)) && defined(S_ISCHR)
3131
# define OPEN_CHR_FILES
3232
static int is_dev_fd_file(char_u *fname);
3333
#endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
965,
744746
/**/
745747
964,
746748
/**/

0 commit comments

Comments
 (0)