#426 - different freebsd versions have extra arg and i want to add a deffault to it

This commit is contained in:
Adam D. Ruppe 2024-04-11 09:22:20 -04:00
parent 89252d46e4
commit ed8cd91cdd
1 changed files with 5 additions and 0 deletions

5
core.d
View File

@ -129,6 +129,11 @@ version(Windows) {
version=Arsd_core_kqueue;
import core.sys.freebsd.sys.event;
extern(D) void EV_SET(kevent_t* kevp, typeof(kevent_t.tupleof) args = kevent_t.tupleof.init)
{
*kevp = kevent_t(args);
}
} else version(DragonFlyBSD) {
// NOT ACTUALLY TESTED
version=Arsd_core_kqueue;