about summary refs log tree commit diff
path: root/arch/x86_64/bits/mman.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/bits/mman.h')
-rw-r--r--arch/x86_64/bits/mman.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/bits/mman.h b/arch/x86_64/bits/mman.h
index dc61b500..80ed39fa 100644
--- a/arch/x86_64/bits/mman.h
+++ b/arch/x86_64/bits/mman.h
@@ -30,7 +30,7 @@
 #define MCL_CURRENT     1
 #define MCL_FUTURE      2
 
-#ifdef _GNU_SOURCE
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 #define MADV_NORMAL      0
 #define MADV_RANDOM      1
 #define MADV_SEQUENTIAL  2