From c64c199ab7862b0690662475953bde5418c8cb25 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sun, 14 Jan 2024 17:33:23 +0300 Subject: [PATCH] LibJS: Don't use MADV_FREE / MADV_DONTNEED on GNU/Hurd Much like on Serenity itself, these aren't implemented. --- Userland/Libraries/LibJS/Heap/BlockAllocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Heap/BlockAllocator.cpp b/Userland/Libraries/LibJS/Heap/BlockAllocator.cpp index bc04bdda5e..22c59004cc 100644 --- a/Userland/Libraries/LibJS/Heap/BlockAllocator.cpp +++ b/Userland/Libraries/LibJS/Heap/BlockAllocator.cpp @@ -16,7 +16,7 @@ #endif // FIXME: Implement MADV_FREE and/or MADV_DONTNEED on SerenityOS. -#if defined(AK_OS_SERENITY) || (!defined(MADV_FREE) && !defined(MADV_DONTNEED)) +#if defined(AK_OS_SERENITY) || defined(AK_OS_GNU_HURD) || (!defined(MADV_FREE) && !defined(MADV_DONTNEED)) # define USE_FALLBACK_BLOCK_DEALLOCATION #endif