summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-05 03:58:40 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-05 03:58:40 +0200
commit9de7a0daaf35f91f55d7a64bebe327e71b56b67b (patch)
tree49bda008382d11e2a6b474e9d44613826c998284 /AK
parentdd966c03c9f8931d48cc724fad053b5d610c3fd9 (diff)
downloadserenity-9de7a0daaf35f91f55d7a64bebe327e71b56b67b.zip
AK: Fix problem when building i686-pc-serenity toolchain from scratch.
Diffstat (limited to 'AK')
-rw-r--r--AK/kmalloc.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/AK/kmalloc.h b/AK/kmalloc.h
index d6a5966e3d..d5bf402c76 100644
--- a/AK/kmalloc.h
+++ b/AK/kmalloc.h
@@ -1,9 +1,5 @@
#pragma once
-#ifndef KERNEL
-#include <new>
-#endif
-
#if defined(SERENITY) && defined(KERNEL)
#define AK_MAKE_ETERNAL \
public: \
@@ -48,4 +44,9 @@ inline void operator delete[](void* ptr)
return kfree(ptr);
}
+inline void* operator new(size_t, void* ptr)
+{
+ return ptr;
+}
+
#endif