From 41312a589ebb445ef6675f58e01fc6950bb7e396 Mon Sep 17 00:00:00 2001 From: Diederik de Groot Date: Thu, 11 Jan 2018 10:40:37 +0100 Subject: [PATCH] Remove static compiler __VERSION check. "import core.sys.dragonflybsd.netinet.in_" will work, when compiler support is there. [See](https://github.com/vibe-d/vibe.d/pull/2028#discussion_r161077152) --- source/eventcore/drivers/posix/sockets.d | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/eventcore/drivers/posix/sockets.d b/source/eventcore/drivers/posix/sockets.d index daba7ae..c3d4413 100644 --- a/source/eventcore/drivers/posix/sockets.d +++ b/source/eventcore/drivers/posix/sockets.d @@ -59,10 +59,7 @@ version(FreeBSD) { } else import core.sys.freebsd.netinet.in_ : IP_ADD_MEMBERSHIP, IP_MULTICAST_LOOP; } version(DragonFlyBSD) { - static if (__VERSION__ < 2077) { - enum IP_ADD_MEMBERSHIP = 12; - enum IP_MULTICAST_LOOP = 11; - } else import core.sys.dragonflybsd.netinet.in_ : IP_ADD_MEMBERSHIP, IP_MULTICAST_LOOP; + import core.sys.dragonflybsd.netinet.in_ : IP_ADD_MEMBERSHIP, IP_MULTICAST_LOOP; } version (Solaris) { enum IP_ADD_MEMBERSHIP = 0x13;