summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-10-15 19:33:50 +0200
committerBram Moolenaar <Bram@vim.org>2016-10-15 19:33:50 +0200
commitca291aec99b60fe81eaab36aa718e51421bb88d5 (patch)
treeb0d0737ce7f7a4bd7de81c726f125d058cd0bd89 /src/vim.h
parent0a9046fbcb33770517ab0220b8100c4494bddab2 (diff)
downloadvim-ca291aec99b60fe81eaab36aa718e51421bb88d5.zip
patch 8.0.0038
Problem: OPEN_CHR_FILES not defined for FreeBSD using Debian userland files. Solution: Check for __FreeBSD_kernel__. (James McCoy, closes #1166)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vim.h b/src/vim.h
index 0ac296e26..5946d63d2 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -2495,7 +2495,8 @@ typedef enum
#define FNE_INCL_BR 1 /* include [] in name */
#define FNE_CHECK_START 2 /* check name starts with valid character */
-#if (defined(sun) || defined(__FreeBSD__)) && defined(S_ISCHR)
+#if (defined(sun) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) \
+ && defined(S_ISCHR)
# define OPEN_CHR_FILES
#endif