Skip to content

Commit c560a9a

Browse files
authored
Fix wrong ifdef in pal_linux.h (#546)
1 parent 6b0bda0 commit c560a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snmalloc/pal/pal_linux.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace snmalloc
4646
* Fallback to MADV_DONTNEED on older kernels
4747
*/
4848
static constexpr int madvise_free_flags =
49-
# ifdef SNMALLOC_HAS_LINUX_RANDOM_H
49+
# if defined(MADV_FREE)
5050
MADV_FREE
5151
# else
5252
MADV_DONTNEED

0 commit comments

Comments
 (0)