syscalls/pkeys/pkey01: build fail MAP_HUGETLB undefine
diff mbox series

Message ID 20191023025606.24449-1-pifang@redhat.com
State Accepted
Headers show
Series
  • syscalls/pkeys/pkey01: build fail MAP_HUGETLB undefine
Related show

Commit Message

Ping Fang Oct. 23, 2019, 2:56 a.m. UTC
build fail on old distro(based glibc-2.12.1 2010-08-03)
MAP_HUGELTB introduced in glibc-2.11.3 2010-11-30.
include lapi/mmap.h to fix it.

Signed-off-by: Ping Fang <pifang@redhat.com>
---
 testcases/kernel/syscalls/pkeys/pkey.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Li Wang Oct. 23, 2019, 3:36 a.m. UTC | #1
Merged.

Patch
diff mbox series

diff --git a/testcases/kernel/syscalls/pkeys/pkey.h b/testcases/kernel/syscalls/pkeys/pkey.h
index 3c1204978..6e32326b6 100644
--- a/testcases/kernel/syscalls/pkeys/pkey.h
+++ b/testcases/kernel/syscalls/pkeys/pkey.h
@@ -9,6 +9,7 @@ 
 
 #include "tst_test.h"
 #include "lapi/syscalls.h"
+#include "lapi/mmap.h"
 
 #ifndef PKEY_DISABLE_ACCESS
 # define PKEY_DISABLE_ACCESS 0x1