From 014c2a82bd16e4ac5c76c4c713817a41ff800aec Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 21 Jan 2021 14:04:30 +0100 Subject: [PATCH] event/SignalMonitor: fix non-Linux build failure Regression by commit cd4b673b6c2 Closes https://github.com/MusicPlayerDaemon/MPD/issues/1060 --- src/event/SignalMonitor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event/SignalMonitor.cxx b/src/event/SignalMonitor.cxx index 8e0d3238e..8f9d641ee 100644 --- a/src/event/SignalMonitor.cxx +++ b/src/event/SignalMonitor.cxx @@ -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 }