[PATCH 1/1] Exclude GNU/Hurd from has('bsd') feature

8 views
Skip to first unread message

Zhaoming Luo

unread,
Feb 7, 2025, 3:33:59 AM2/7/25
to vim...@vim.org, bug-...@gnu.org, 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 compiling for GNU/Hurd.

Signed-off-by: Zhaoming Luo <zhmi...@163.com>
---
src/evalfunc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/evalfunc.c b/src/evalfunc.c
index d81480b50..8e788eb3f 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -6409,7 +6409,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
--
2.47.2

Zhaoming Luo

unread,
Feb 7, 2025, 3:34:00 AM2/7/25
to vim...@vim.org, bug-...@gnu.org
Hi,

I'm not sure if I should add a feature (like has('hurd')) for GNU/Hurd,
and if it should be in this patch or in a seperate patch.

Zhaoming Luo (1):
Exclude GNU/Hurd from has('bsd') feature

src/evalfunc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--
2.47.2

Christian Brabandt

unread,
Feb 7, 2025, 5:43:01 AM2/7/25
to vim...@googlegroups.com, vim...@vim.org
Thanks. I saw your PR and that one has been included now. Sorry for not
letting your message through, Google did not notify me of the pending
approval until today.

Thanks,
Christian
--
"In short, _ N is Richardian if, and only if, _ N is not Richardian."
Reply all
Reply to author
Forward
0 new messages