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:
parent
e062e44f1c
commit
41312a589e
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue