From d39f585f35149d89aba2c3a9193f56208ed1805e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 25 Jan 2019 05:19:29 +0100 Subject: [PATCH] Kernel: Fix Syscall.h build when out of context. --- Kernel/Syscall.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Kernel/Syscall.h b/Kernel/Syscall.h index 4bcd15d0e8..7acd4e0a9f 100644 --- a/Kernel/Syscall.h +++ b/Kernel/Syscall.h @@ -82,7 +82,9 @@ __ENUMERATE_SYSCALL(gui_set_window_rect) \ +#ifdef SERENITY struct fd_set; +#endif namespace Syscall { @@ -104,6 +106,7 @@ inline constexpr const char* toString(Function function) return "Unknown"; } +#ifdef SERENITY struct SC_mmap_params { uint32_t addr; uint32_t size; @@ -154,6 +157,7 @@ inline dword invoke(Function function, T1 arg1, T2 arg2, T3 arg3) asm volatile("int $0x80":"=a"(result):"a"(function),"d"((dword)arg1),"c"((dword)arg2),"b"((dword)arg3):"memory"); return result; } +#endif }