[LTP] [PATCH] Fix mmap17 build in older distros
Andrea Cervesato
andrea.cervesato@suse.de
Tue Mar 18 12:46:18 CET 2025
From: Andrea Cervesato <andrea.cervesato@suse.com>
Import lapi/mmap.h in mmap17 to define MAP_FIXED_NOREPLACE.
Fixes: ac2f330fa ("Cleanup mmap17 test")
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
testcases/kernel/syscalls/mmap/mmap17.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/syscalls/mmap/mmap17.c b/testcases/kernel/syscalls/mmap/mmap17.c
index 1d10676379a102750ab7dbb73dd3ccd398112129..84e738d644a974ff26bb7954ac100e8e8cfe31d8 100644
--- a/testcases/kernel/syscalls/mmap/mmap17.c
+++ b/testcases/kernel/syscalls/mmap/mmap17.c
@@ -11,6 +11,7 @@
*/
#include "tst_test.h"
+#include "lapi/mmap.h"
static int fd_file1;
static int fd_file2;
---
base-commit: 6a1154fbb4ce9cd465a6585da305f9a98a73174c
change-id: 20250318-fix_mmap_build-4346105e3b76
Best regards,
--
Andrea Cervesato <andrea.cervesato@suse.com>
More information about the ltp
mailing list