Add missing ESHUTDOWN constant for macOS.

This commit is contained in:
Sönke Ludwig 2020-03-18 07:59:41 +01:00
parent 7c3fdc5ddf
commit 8597d2ae34

View file

@ -69,6 +69,8 @@ version(OSX) {
enum IP_ADD_MEMBERSHIP = 12; enum IP_ADD_MEMBERSHIP = 12;
enum IP_MULTICAST_LOOP = 11; enum IP_MULTICAST_LOOP = 11;
} else import core.sys.darwin.netinet.in_ : IP_ADD_MEMBERSHIP, IP_MULTICAST_LOOP; } else import core.sys.darwin.netinet.in_ : IP_ADD_MEMBERSHIP, IP_MULTICAST_LOOP;
static if (!is(typeof(ESHUTDOWN))) enum ESHUTDOWN = 58;
} }
version(FreeBSD) { version(FreeBSD) {
static if (__VERSION__ < 2077) { static if (__VERSION__ < 2077) {