From 9781d591cb022992380e8a98db7639f91f9bb93c Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 11 Mar 2007 13:56:45 +0000 Subject: [PATCH] Include in DoublyLinkedList.h only when compiling for the kernel. Added missing includes in userland code that uses the header. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20366 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/util/DoublyLinkedList.h | 5 ++++- src/kits/debug/SymbolLookup.cpp | 5 ++++- src/servers/app/ServerBitmap.cpp | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/headers/private/kernel/util/DoublyLinkedList.h b/headers/private/kernel/util/DoublyLinkedList.h index 1b594ec9ab..228d581854 100644 --- a/headers/private/kernel/util/DoublyLinkedList.h +++ b/headers/private/kernel/util/DoublyLinkedList.h @@ -7,7 +7,10 @@ #include -#include + +#ifdef _KERNEL_MODE +# include +#endif #ifdef __cplusplus diff --git a/src/kits/debug/SymbolLookup.cpp b/src/kits/debug/SymbolLookup.cpp index c749048890..c3b0b7a468 100644 --- a/src/kits/debug/SymbolLookup.cpp +++ b/src/kits/debug/SymbolLookup.cpp @@ -3,10 +3,13 @@ * Distributed under the terms of the MIT License. */ +#include "SymbolLookup.h" + +#include + #include #include -#include "SymbolLookup.h" using std::nothrow; using namespace BPrivate; diff --git a/src/servers/app/ServerBitmap.cpp b/src/servers/app/ServerBitmap.cpp index cc75c9a188..87aca3752c 100644 --- a/src/servers/app/ServerBitmap.cpp +++ b/src/servers/app/ServerBitmap.cpp @@ -16,6 +16,7 @@ #include #include +#include #include using std::nothrow;