Skip to content

Commit 1a2ab99

Browse files
committed
patch 8.0.1357: startup test fails on OpenBSD
Problem: Startup test fails on OpenBSD. (Edd Barrett) Solution: Check for "BSD" instead of "FreeBSD" being defined. (James McCoy, closes #2376, closes #2378)
1 parent c5aa55d commit 1a2ab99

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/version.c

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

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1357,
774776
/**/
775777
1356,
776778
/**/

src/vim.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2485,7 +2485,8 @@ typedef enum {
24852485
#define FNE_INCL_BR 1 /* include [] in name */
24862486
#define FNE_CHECK_START 2 /* check name starts with valid character */
24872487

2488-
#if (defined(SUN_SYSTEM) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) \
2488+
/* BSD is supposed to cover FreeBSD and similar systems. */
2489+
#if (defined(SUN_SYSTEM) || defined(BSD) || defined(__FreeBSD_kernel__)) \
24892490
&& defined(S_ISCHR)
24902491
# define OPEN_CHR_FILES
24912492
#endif

0 commit comments

Comments
 (0)