summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibEDID
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2023-01-07 13:57:33 -0700
committerAndrew Kaster <andrewdkaster@gmail.com>2023-01-21 10:43:59 -0700
commit7ab37ee22cb85820ec73f0677f06125c466feeff (patch)
tree2c379f4e95a9b48dfb20a4d615b39d583bd96149 /Userland/Libraries/LibEDID
parent0420736143067c16339a08ced1ff16da36e4e163 (diff)
downloadserenity-7ab37ee22cb85820ec73f0677f06125c466feeff.zip
Everywhere: Remove string.h include from AK/Traits.h and resolve fallout
A lot of places were relying on AK/Traits.h to give it strnlen, memcmp, memcpy and other related declarations. In the quest to remove inclusion of LibC headers from Kernel files, deal with all the fallout of this included-everywhere header including less things.
Diffstat (limited to 'Userland/Libraries/LibEDID')
-rw-r--r--Userland/Libraries/LibEDID/EDID.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibEDID/EDID.cpp b/Userland/Libraries/LibEDID/EDID.cpp
index a3f930b2fa..d50d896426 100644
--- a/Userland/Libraries/LibEDID/EDID.cpp
+++ b/Userland/Libraries/LibEDID/EDID.cpp
@@ -10,7 +10,9 @@
#include <AK/Try.h>
#include <LibEDID/EDID.h>
-#ifndef KERNEL
+#ifdef KERNEL
+# include <Kernel/StdLib.h>
+#else
# include <AK/ScopeGuard.h>
# include <Kernel/API/Graphics.h>
# include <fcntl.h>