Fix wrong ifdef in pal_linux.h (#546)

This commit is contained in:
Matthias Wahl
2022-06-17 11:48:27 +02:00
committed by GitHub
parent 6b0bda01c7
commit c560a9aa27

View File

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