Skip to contentSkip to conversation

syscalls/pkeys/pkey01: build fail MAP_HUGETLB undefine

PATCH New Ping Fang 2 participants 2 messages Oct 23, 2019

lore
Share & tools
lore

Ping Fang

author
#0 lore raw

PATCH 1/1 syscalls/pkeys/pkey01: build fail MAP_HUGETLB undefine

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.

---
 testcases/kernel/syscalls/pkeys/pkey.h | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/syscalls/pkeys/pkey.h +1 -0
index 3c1204978..6e32326b6 100644
@@ -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
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/1 syscalls/pkeys/pkey01: build fail MAP_HUGETLB undefine

Merged.

Signature · 5 lines
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20191023/4da79ee9/attachment.htm>