diff options
-rw-r--r-- | Kernel/Mutex.cpp | 4 | ||||
-rw-r--r-- | Kernel/Thread.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Kernel/Mutex.cpp b/Kernel/Mutex.cpp index 85aed7ea0b..6a84d826df 100644 --- a/Kernel/Mutex.cpp +++ b/Kernel/Mutex.cpp @@ -4,7 +4,9 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <AK/SourceLocation.h> +#ifdef LOCK_DEBUG +# include <AK/SourceLocation.h> +#endif #include <Kernel/Debug.h> #include <Kernel/KSyms.h> #include <Kernel/Mutex.h> diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 212effb3e6..21914e343e 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -12,7 +12,9 @@ #include <AK/IntrusiveList.h> #include <AK/Optional.h> #include <AK/OwnPtr.h> -#include <AK/SourceLocation.h> +#ifdef LOCK_DEBUG +# include <AK/SourceLocation.h> +#endif #include <AK/String.h> #include <AK/Time.h> #include <AK/Vector.h> |