From 3d69f43cfff867b6b75bee0a1d8f83c6ce8f9123 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 16 Sep 2023 22:55:03 +0200 Subject: [PATCH] event/Loop: include SocketEvent.hxx only if HAVE_THREADED_EVENT_LOOP --- src/event/Loop.hxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx index 98901741e..447d3b223 100644 --- a/src/event/Loop.hxx +++ b/src/event/Loop.hxx @@ -1,13 +1,11 @@ // SPDX-License-Identifier: GPL-2.0-or-later // Copyright The Music Player Daemon Project -#ifndef EVENT_LOOP_HXX -#define EVENT_LOOP_HXX +#pragma once #include "Chrono.hxx" #include "TimerWheel.hxx" #include "Backend.hxx" -#include "SocketEvent.hxx" #include "event/Features.h" #include "time/ClockCache.hxx" #include "util/IntrusiveList.hxx" @@ -18,6 +16,7 @@ #ifdef HAVE_THREADED_EVENT_LOOP #include "WakeFD.hxx" +#include "SocketEvent.hxx" #include "thread/Id.hxx" #include "thread/Mutex.hxx" #endif @@ -31,6 +30,7 @@ namespace Uring { class Queue; class Manager; } #endif class DeferEvent; +class SocketEvent; class InjectEvent; /** @@ -310,5 +310,3 @@ public: #endif } }; - -#endif /* MAIN_NOTIFY_H */