Import the druntime core.sys.posix.sys.socket

This will pickup platform specific definitions from the
This commit is contained in:
Radu Racariu 2019-03-14 16:29:02 +02:00 committed by GitHub
parent 5f703cf039
commit 11ad96be4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,7 @@ version (Posix) {
import core.sys.posix.unistd : close, read, write;
import core.stdc.errno : errno, EAGAIN, EINPROGRESS;
import core.sys.posix.fcntl;
import core.sys.posix.sys.socket;
version (linux) enum SO_REUSEPORT = 15;
else enum SO_REUSEPORT = 0x200;