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)
|
||||
:event(_loop, BIND_THIS_METHOD(OnSocketReady)) {
|
||||
#ifndef USE_SIGNALFD
|
||||
event.Open(SocketDescriptor(fd.Get()));
|
||||
event.Open(fd.GetSocket());
|
||||
event.ScheduleRead();
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue