event/SignalMonitor: fix non-Linux build failure

Regression by commit cd4b673b6c

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1060
This commit is contained in:
Max Kellermann 2021-01-21 14:04:30 +01:00
parent 594dfe572b
commit 014c2a82bd
1 changed files with 1 additions and 1 deletions

View File

@ -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
}