From d3949386897d232712f0ba869b012a283afa931e Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Fri, 1 Nov 2024 17:37:13 +0100 Subject: [PATCH] hugemmap34: Use lapi/mmap.h to fix build on old distros Required on very old distros we still support: * Ubuntu Bionic * openSUSE Leap 42.2 Fixes: 21fdea4799 ("Migrating the libhugetlbfs/testcases/stack_grow_into_huge.c test") Signed-off-by: Petr Vorel --- testcases/kernel/mem/hugetlb/hugemmap/hugemmap34.c | 1 + 1 file changed, 1 insertion(+) diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap34.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap34.c index 3f04376b656..a7a88fbb2d9 100644 --- a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap34.c +++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap34.c @@ -20,6 +20,7 @@ * huge page-only segment -- resulting in bugs. */ +#include "lapi/mmap.h" #include "hugetlb.h" #include