From c560a9aa275d7c31593a957261812d8657665b10 Mon Sep 17 00:00:00 2001 From: Matthias Wahl Date: Fri, 17 Jun 2022 11:48:27 +0200 Subject: [PATCH] Fix wrong ifdef in pal_linux.h (#546) --- src/snmalloc/pal/pal_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snmalloc/pal/pal_linux.h b/src/snmalloc/pal/pal_linux.h index ffc02ec..5e1289a 100644 --- a/src/snmalloc/pal/pal_linux.h +++ b/src/snmalloc/pal/pal_linux.h @@ -46,7 +46,7 @@ namespace snmalloc * Fallback to MADV_DONTNEED on older kernels */ static constexpr int madvise_free_flags = -# ifdef SNMALLOC_HAS_LINUX_RANDOM_H +# if defined(MADV_FREE) MADV_FREE # else MADV_DONTNEED