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 good to know. I know MACOS_X is derived from the combination of Mach and FreeBSD, so it's a BSD-based system. What's the definition of 'BSD-based'? I'm quite curious about why GNU/Hurd is a BSD-based system. Zhaoming