LibCore: Only include Account.h on Serenity in EventLoop and System

Core::Acount is only used within ``#ifdef __serenity__`` blocks in these
files, so guard the inclusion of Account.h in the same way.

This fixes the Android build of these files.
This commit is contained in:
Andrew Kaster 2022-09-22 07:46:01 -06:00 committed by Tim Flynn
parent d6a741af6c
commit 8f38367d46
Notes: sideshowbarker 2024-07-17 06:43:27 +09:00
2 changed files with 3 additions and 2 deletions

View file

@ -17,7 +17,6 @@
#include <AK/Singleton.h>
#include <AK/TemporaryChange.h>
#include <AK/Time.h>
#include <LibCore/Account.h>
#include <LibCore/Event.h>
#include <LibCore/EventLoop.h>
#include <LibCore/LocalServer.h>
@ -37,6 +36,8 @@
#include <unistd.h>
#ifdef __serenity__
# include <LibCore/Account.h>
extern bool s_global_initializers_ran;
#endif

View file

@ -12,7 +12,6 @@
#include <AK/StdLibExtras.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibCore/Account.h>
#include <LibCore/File.h>
#include <LibCore/System.h>
#include <limits.h>
@ -26,6 +25,7 @@
#include <unistd.h>
#ifdef __serenity__
# include <LibCore/Account.h>
# include <LibSystem/syscall.h>
# include <serenity.h>
#endif