mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-patch:9.1.1081: has('bsd') is true for GNU/Hurd
Problem: has('bsd') is true for GNU/Hurd
Solution: exclude GNU/Hurd from BSD feature flag
(Zhaoming Luo)
GNU/Hurd, like Mac OS X, is a BSD-based system. It should exclude
has('bsd') feature just like what Mac OS X does. The __GNU__ pre-defined
macro indicates it's compiled for GNU/Hurd.
closes: vim/vim#16580
a41dfcd55b
Co-authored-by: Zhaoming Luo <zhmingluo@163.com>
This commit is contained in:
@@ -3075,9 +3075,12 @@ static void f_gettext(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
static void f_has(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
{
|
||||
static const char *const has_list[] = {
|
||||
#if defined(BSD) && !defined(__APPLE__)
|
||||
#if defined(BSD) && !defined(__APPLE__) && !defined(__GNU__)
|
||||
"bsd",
|
||||
#endif
|
||||
#ifdef __GNU__
|
||||
"hurd",
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
"linux",
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user