event/SignalMonitor: fix non-Linux build failure
Regression by commit cd4b673b6c
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1060
This commit is contained in:
parent
594dfe572b
commit
014c2a82bd
@ -57,7 +57,7 @@ public:
|
|||||||
explicit SignalMonitor(EventLoop &_loop)
|
explicit SignalMonitor(EventLoop &_loop)
|
||||||
:event(_loop, BIND_THIS_METHOD(OnSocketReady)) {
|
:event(_loop, BIND_THIS_METHOD(OnSocketReady)) {
|
||||||
#ifndef USE_SIGNALFD
|
#ifndef USE_SIGNALFD
|
||||||
event.Open(SocketDescriptor(fd.Get()));
|
event.Open(fd.GetSocket());
|
||||||
event.ScheduleRead();
|
event.ScheduleRead();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user