[LTP] [PATCH 1/2] Fallback for MADV_GUARD_* definitions
Andrea Cervesato
andrea.cervesato@suse.de
Tue Dec 3 14:36:36 CET 2024
From: Andrea Cervesato <andrea.cervesato@suse.com>
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
include/lapi/mmap.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/lapi/mmap.h b/include/lapi/mmap.h
index 7512e9f812a065e5485e042ef0eadd1a05e6b63c..ea9730586234eb0ab4d38ba7450a1e3a30dd49b9 100644
--- a/include/lapi/mmap.h
+++ b/include/lapi/mmap.h
@@ -38,6 +38,14 @@
# define MADV_SOFT_OFFLINE 101
#endif
+#ifndef MADV_GUARD_INSTALL
+# define MADV_GUARD_INSTALL 102
+#endif
+
+#ifndef MADV_GUARD_REMOVE
+# define MADV_GUARD_REMOVE 103
+#endif
+
#ifndef MADV_MERGEABLE
# define MADV_MERGEABLE 12
#endif
--
2.43.0
More information about the ltp
mailing list