On Mon, Feb 03, 2025 at 07:32:42AM +0100, Samuel Thibault wrote: > Hello, > > Zhaoming Luo, le lun. 03 févr. 2025 12:58:13 +0800, a ecrit: > > So the story in short is that vim thinks it is compiled for bsd kernel. > > You can reproduce the issue by running `:echo has('bsd')` in vim on > > Hurd. The implementation of `has()` is in [2]. The `has('bsd')` is > > covered by `#if defined(BSD) && !defined(MACOS_X)`[3]. I haven't found a > > practical method to track where the BSD macro is defined during > > compilation. > > GNU/Hurd is indeed a BSD-based system. So it should be excluded > explicitly from this test like is done for MACOS_X.
Ok I will send a patch to vim to exclude has('bsd') using defined(__GNU__), do you think adding a has() (maybe has('hurd')?) for Hurd should also be submitted with the patch? Zhaoming