From 63764b3a652e7bbde9e11e7a6b1b3dab65bb54ee Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 22 Oct 2018 14:06:22 +0200 Subject: Import very modest Userland. --- ELFLoader/ExecSpace.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ELFLoader/ExecSpace.cpp') diff --git a/ELFLoader/ExecSpace.cpp b/ELFLoader/ExecSpace.cpp index 8fe97a76ce..fb6d55a0dd 100644 --- a/ELFLoader/ExecSpace.cpp +++ b/ELFLoader/ExecSpace.cpp @@ -12,7 +12,7 @@ ExecSpace::~ExecSpace() { } -#ifdef SERENITY_KERNEL +#ifdef SERENITY int puts(const char* str) { kprintf("%s\n", str); @@ -25,7 +25,7 @@ void ExecSpace::initializeBuiltins() m_symbols.set("puts", { (char*)puts, 0 }); } -#ifdef SERENITY_KERNEL +#ifdef SERENITY bool ExecSpace::loadELF(ByteBuffer&& file) #else bool ExecSpace::loadELF(MappedFile&& file) @@ -49,7 +49,7 @@ static void disassemble(const char* data, size_t length) if (!length) return; -#ifdef SERENITY_KERNEL +#ifdef SERENITY for (unsigned i = 0; i < length; ++i) { kprintf("%b ", (unsigned char)data[i]); } -- cgit v1.2.3