FreeBSD 13 : wrong kernel version and size of kevent_t

eugene dee0xeed at gmail.com
Tue Dec 21 20:00:42 UTC 2021


On Tuesday, 21 December 2021 at 19:49:26 UTC, Steven 
Schveighoffer wrote:
> If this is a compiler-supplied version, then I don't think you 
> are allowed to set it explicitly.


moreover... commented out in condig.d like this:


```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");
```

and...

```
@bsd:~/d> dmd freebsdver
/usr/include/d/dmd/core/sys/posix/sys/types.d(201): Error: 
undefined identifier `__FreeBSD_version`
/usr/include/d/dmd/core/sys/posix/stdio.d(393): Error: undefined 
identifier `__FreeBSD_version`
/usr/include/d/dmd/core/sys/freebsd/sys/event.d(42): Error: 
undefined identifier `__FreeBSD_version`
/usr/include/d/dmd/core/sys/freebsd/sys/event.d(173): Error: 
undefined identifier `__FreeBSD_version`
```




More information about the Digitalmars-d-learn mailing list