Skip to content

Commit

Permalink
hugemmap34: Use lapi/mmap.h to fix build on old distros
Browse files Browse the repository at this point in the history
Required on very old distros we still support:
* Ubuntu Bionic
* openSUSE Leap 42.2

Fixes: 21fdea4 ("Migrating the libhugetlbfs/testcases/stack_grow_into_huge.c test")
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Nov 1, 2024
1 parent db7df4d commit d394938
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testcases/kernel/mem/hugetlb/hugemmap/hugemmap34.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* huge page-only segment -- resulting in bugs.
*/

#include "lapi/mmap.h"
#include "hugetlb.h"
#include <errno.h>

Expand Down

0 comments on commit d394938

Please sign in to comment.