comparison src/vim.h @ 12962:15a78f9a978f v8.0.1357

patch 8.0.1357: startup test fails on OpenBSD commit https://github.com/vim/vim/commit/1a2ab991a6d168699fbcc934b63cfc3579c3d34d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 28 21:06:18 2017 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Tue, 28 Nov 2017 21:15:04 +0100
parents 85a601f985ab
children dd734ee3e2fe
comparison
equal deleted inserted replaced
12961:a5ec421372e7 12962:15a78f9a978f
2483 2483
2484 /* flags for find_name_end() */ 2484 /* flags for find_name_end() */
2485 #define FNE_INCL_BR 1 /* include [] in name */ 2485 #define FNE_INCL_BR 1 /* include [] in name */
2486 #define FNE_CHECK_START 2 /* check name starts with valid character */ 2486 #define FNE_CHECK_START 2 /* check name starts with valid character */
2487 2487
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__)) \
2489 && defined(S_ISCHR) 2490 && defined(S_ISCHR)
2490 # define OPEN_CHR_FILES 2491 # define OPEN_CHR_FILES
2491 #endif 2492 #endif
2492 2493
2493 #if defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H) 2494 #if defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H)