mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
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: #16580 Signed-off-by: Zhaoming Luo <zhmingluo@163.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
9c8f9b10fc
commit
a41dfcd55b
@ -6425,7 +6425,7 @@ f_has(typval_T *argvars, typval_T *rettv)
|
||||
#endif
|
||||
},
|
||||
{"bsd",
|
||||
#if defined(BSD) && !defined(MACOS_X)
|
||||
#if defined(BSD) && !defined(MACOS_X) && !defined(__GNU__)
|
||||
1
|
||||
#else
|
||||
0
|
||||
@ -6436,6 +6436,13 @@ f_has(typval_T *argvars, typval_T *rettv)
|
||||
1
|
||||
#else
|
||||
0
|
||||
#endif
|
||||
},
|
||||
{"hurd",
|
||||
#ifdef __GNU__
|
||||
1
|
||||
#else
|
||||
0
|
||||
#endif
|
||||
},
|
||||
{"linux",
|
||||
|
Reference in New Issue
Block a user