Fix Windows compiler errors
This commit is contained in:
parent
6108a64973
commit
dd915e74b1
|
@ -6,9 +6,6 @@ import eventcore.drivers.posix.driver;
|
||||||
import eventcore.drivers.posix.signals;
|
import eventcore.drivers.posix.signals;
|
||||||
import eventcore.internal.utils : nogc_assert, print;
|
import eventcore.internal.utils : nogc_assert, print;
|
||||||
|
|
||||||
import core.stdc.errno : errno, EAGAIN, EINPROGRESS;
|
|
||||||
import core.sys.posix.signal;
|
|
||||||
import core.sys.posix.unistd : close, read, write, dup;
|
|
||||||
import std.algorithm.comparison : among;
|
import std.algorithm.comparison : among;
|
||||||
import std.variant : visit;
|
import std.variant : visit;
|
||||||
|
|
||||||
|
@ -17,7 +14,9 @@ private enum SIGCHLD = 17;
|
||||||
|
|
||||||
final class SignalEventDriverProcesses(Loop : PosixEventLoop) : EventDriverProcesses {
|
final class SignalEventDriverProcesses(Loop : PosixEventLoop) : EventDriverProcesses {
|
||||||
@safe: /*@nogc:*/ nothrow:
|
@safe: /*@nogc:*/ nothrow:
|
||||||
|
import core.stdc.errno : errno, EAGAIN, EINPROGRESS;
|
||||||
import core.sys.linux.sys.signalfd;
|
import core.sys.linux.sys.signalfd;
|
||||||
|
import core.sys.posix.unistd : close, read, write, dup;
|
||||||
|
|
||||||
private {
|
private {
|
||||||
static struct ProcessInfo {
|
static struct ProcessInfo {
|
||||||
|
@ -38,6 +37,8 @@ final class SignalEventDriverProcesses(Loop : PosixEventLoop) : EventDriverProce
|
||||||
|
|
||||||
this(Loop loop, EventDriverPipes pipes)
|
this(Loop loop, EventDriverPipes pipes)
|
||||||
{
|
{
|
||||||
|
import core.sys.posix.signal;
|
||||||
|
|
||||||
m_loop = loop;
|
m_loop = loop;
|
||||||
m_pipes = pipes;
|
m_pipes = pipes;
|
||||||
|
|
||||||
|
@ -182,7 +183,9 @@ final class SignalEventDriverProcesses(Loop : PosixEventLoop) : EventDriverProce
|
||||||
|
|
||||||
final override void kill(ProcessID pid, int signal)
|
final override void kill(ProcessID pid, int signal)
|
||||||
@trusted {
|
@trusted {
|
||||||
.kill(cast(int)pid, signal);
|
import core.sys.posix.signal : pkill = kill;
|
||||||
|
|
||||||
|
pkill(cast(int)pid, signal);
|
||||||
}
|
}
|
||||||
|
|
||||||
final override size_t wait(ProcessID pid, ProcessWaitCallback on_process_exit)
|
final override size_t wait(ProcessID pid, ProcessWaitCallback on_process_exit)
|
||||||
|
|
|
@ -42,17 +42,17 @@ final class WinAPIEventDriverPipes : EventDriverPipes {
|
||||||
assert(false, "TODO!");
|
assert(false, "TODO!");
|
||||||
}
|
}
|
||||||
|
|
||||||
override void addRef(PipeID pid)
|
override void addRef(PipeFD pid)
|
||||||
{
|
{
|
||||||
assert(false, "TODO!");
|
assert(false, "TODO!");
|
||||||
}
|
}
|
||||||
|
|
||||||
override bool releaseRef(PipeID pid)
|
override bool releaseRef(PipeFD pid)
|
||||||
{
|
{
|
||||||
assert(false, "TODO!");
|
assert(false, "TODO!");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void* rawUserData(PipeID descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)
|
protected override void* rawUserData(PipeFD descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)
|
||||||
@system {
|
@system {
|
||||||
assert(false, "TODO!");
|
assert(false, "TODO!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue