event/Loop: include SocketEvent.hxx only if HAVE_THREADED_EVENT_LOOP

This commit is contained in:
Max Kellermann 2023-09-16 22:55:03 +02:00
parent 41b1931d91
commit 3d69f43cff

View File

@ -1,13 +1,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project // Copyright The Music Player Daemon Project
#ifndef EVENT_LOOP_HXX #pragma once
#define EVENT_LOOP_HXX
#include "Chrono.hxx" #include "Chrono.hxx"
#include "TimerWheel.hxx" #include "TimerWheel.hxx"
#include "Backend.hxx" #include "Backend.hxx"
#include "SocketEvent.hxx"
#include "event/Features.h" #include "event/Features.h"
#include "time/ClockCache.hxx" #include "time/ClockCache.hxx"
#include "util/IntrusiveList.hxx" #include "util/IntrusiveList.hxx"
@ -18,6 +16,7 @@
#ifdef HAVE_THREADED_EVENT_LOOP #ifdef HAVE_THREADED_EVENT_LOOP
#include "WakeFD.hxx" #include "WakeFD.hxx"
#include "SocketEvent.hxx"
#include "thread/Id.hxx" #include "thread/Id.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#endif #endif
@ -31,6 +30,7 @@ namespace Uring { class Queue; class Manager; }
#endif #endif
class DeferEvent; class DeferEvent;
class SocketEvent;
class InjectEvent; class InjectEvent;
/** /**
@ -310,5 +310,3 @@ public:
#endif #endif
} }
}; };
#endif /* MAIN_NOTIFY_H */