FreeBSD 13 : wrong kernel version and size of kevent_t

Johan j at j.nl
Wed Dec 22 00:43:16 UTC 2021


On Tuesday, 21 December 2021 at 21:09:14 UTC, eugene wrote:
> On Tuesday, 21 December 2021 at 21:02:21 UTC, rempas wrote:
>> On Tuesday, 21 December 2021 at 19:55:13 UTC, eugene wrote:
>>>
>>> core/sys/freebsd/config.d and core/sys/freebsd/sys/event.d
>>> are the same as in fresh dmd, so there is not much sense to 
>>> try it.
>>> dmd (including phobos) is a reference, and I do not think,
>>> that ldc is ahead of dmd with it's stdlib.
>>
>> Oh, that was in the next page and I didn't saw it when I 
>> replied. So to continue from my last comment (and answer on 
>> this one), I thought you said that LDC does not include 
>> "core.sys.freebsd.config" 
>> [here](https://forum.dlang.org/post/sjausqwudtujswpomuvr@forum.dlang.org) or is
>> there something I didn't understand right?
>
> * The ldc installed by 'pkg install ldc' (the old one), does 
> not have config module
> * Most resent ldc (link you indicated), does have condig 
> module, and it is exactly the same as condig in most recent dmd

Hi Eugene,
   When you run `ldc2 -v test.d` (some arbitrary d file), you 
should see "predefs" at the top, followed by a bunch of 
predefined versions by the compiler. FreeBSD_xx should be on that 
list, and the number should correspond to your OS version. If it 
does not, then that's a bug in LDC.
I was wrong: LDC is using its own code to determine the OS 
version, and it should already do that correctly.

cheers,
   Johan



More information about the Digitalmars-d-learn mailing list