FreeBSD 13 : wrong kernel version and size of kevent_t
eugene
dee0xeed at gmail.com
Tue Dec 21 18:50:54 UTC 2021
On Tuesday, 21 December 2021 at 17:00:06 UTC, Johan wrote:
> I think the fix is needed here:
> https://github.com/dlang/dmd/blob/ad8412530e607ffebec36f2dbdff1a6f2798faf7/src/dmd/target.d#L362-L372
looks like this.
it is a little bit strange, that in
/usr/include/d/dmd/core/sys/freebsd/config.d
there is ver 12:
```d
version (FreeBSD_12) enum __FreeBSD_version = 1202000;
else version (FreeBSD_11) enum __FreeBSD_version = 1104000;
else version (FreeBSD_10) enum __FreeBSD_version = 1004000;
else version (FreeBSD_9) enum __FreeBSD_version = 903000;
else version (FreeBSD_8) enum __FreeBSD_version = 804000;
else static assert(false, "Unsupported version of FreeBSD");
```
but __FreeBSD_version is 1104000 anyway.
More information about the Digitalmars-d-learn
mailing list