aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/vim.h
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-11-26 21:26:56 -0500
committerJames McCoy <jamessan@jamessan.com>2017-11-28 18:07:51 -0500
commit8f91f2c9b47e6705e29da2fdbc9519092c757ba5 (patch)
treeeb74fe56bd4e88aeb5cf4c071941fd0dfefbde0f /src/nvim/vim.h
parent20bde8866e6a310f6fee6a6fcdb7546bac335944 (diff)
downloadrneovim-8f91f2c9b47e6705e29da2fdbc9519092c757ba5.tar.gz
rneovim-8f91f2c9b47e6705e29da2fdbc9519092c757ba5.tar.bz2
rneovim-8f91f2c9b47e6705e29da2fdbc9519092c757ba5.zip
Use defined(BSD) check when defining OPEN_CHR_FILES
Rather than enumerate predefines for all BSD systems, just rely on the fact that they all "#define BSD" in sys/param.h. Debian's GNU/kFreeBSD still requires its own check, since it isn't using the BSD userspace. References: OpenBSD - https://github.com/openbsd/src/blob/210ebf9df0460bbdad02da9bbd5d859b61f57462/sys/sys/param.h#L40 FreeBSD - https://github.com/freebsd/freebsd/blob/f5d95e1f8d32db4ccccfd5ad9cecb21ed07a695d/sys/sys/param.h#L43 NetBSD - https://github.com/NetBSD/src/blob/ea620980793cf2011e5424f4a537b0488e3ffb4d/sys/sys/param.h#L49 DragonFlyBSD - https://github.com/DragonFlyBSD/DragonFlyBSD/blob/94ecf1295bb42b59772448d58ff40dd75c4a3ef8/sys/sys/param.h#L41 vim-patch:8.0.1357
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r--src/nvim/vim.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/vim.h b/src/nvim/vim.h
index 88014c8ae8..7da3c8246f 100644
--- a/src/nvim/vim.h
+++ b/src/nvim/vim.h
@@ -314,7 +314,8 @@ enum { FOLD_TEXT_LEN = 51 }; //!< buffer size for get_foldtext()
// Lowest number used for window ID. Cannot have this many windows per tab.
#define LOWEST_WIN_ID 1000
-#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)) && defined(S_ISCHR)
+// BSD is supposed to cover FreeBSD and similar systems.
+#if (defined(BSD) || defined(__FreeBSD_kernel__)) && defined(S_ISCHR)
# define OPEN_CHR_FILES
#endif