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)
This commit is contained in:
Diederik de Groot 2018-01-11 10:40:37 +01:00
parent e062e44f1c
commit 41312a589e
No known key found for this signature in database
GPG key ID: AFA728250A1BECD6

View file

@ -59,10 +59,7 @@ version(FreeBSD) {
} else import core.sys.freebsd.netinet.in_ : IP_ADD_MEMBERSHIP, IP_MULTICAST_LOOP; } else import core.sys.freebsd.netinet.in_ : IP_ADD_MEMBERSHIP, IP_MULTICAST_LOOP;
} }
version(DragonFlyBSD) { version(DragonFlyBSD) {
static if (__VERSION__ < 2077) { import core.sys.dragonflybsd.netinet.in_ : IP_ADD_MEMBERSHIP, IP_MULTICAST_LOOP;
enum IP_ADD_MEMBERSHIP = 12;
enum IP_MULTICAST_LOOP = 11;
} else import core.sys.dragonflybsd.netinet.in_ : IP_ADD_MEMBERSHIP, IP_MULTICAST_LOOP;
} }
version (Solaris) { version (Solaris) {
enum IP_ADD_MEMBERSHIP = 0x13; enum IP_ADD_MEMBERSHIP = 0x13;