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
// 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 */