LibJS: Don't use MADV_FREE / MADV_DONTNEED on GNU/Hurd

Much like on Serenity itself, these aren't implemented.
This commit is contained in:
Sergey Bugaev 2024-01-14 17:33:23 +03:00 committed by Andrew Kaster
parent 8c1f87a869
commit c64c199ab7
Notes: sideshowbarker 2024-07-17 02:56:25 +09:00

View file

@ -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