ltp/numa: Fix compilation without MAP_HUGETLB
PATCH 1/1 ltp/numa: Fix compilation without MAP_HUGETLB
Compilation failed on some older distributions due to undefined MAP_HUGETLB, so we include lapi/mmap.h to fix it.
Signed-off-by Xiao Yang <[email protected]>
--- testcases/kernel/numa/support_numa.c | 1 + 1 file changed, 1 insertion(+)
testcases/kernel/numa/support_numa.c +1 -0
@@ -39,6 +39,7 @@#include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> +#include "lapi/mmap.h" /* Global Variables */ #define MB (1<<20)
Signature · 1 line
1.8.3.1
PATCH 1/1 ltp/numa: Fix compilation without MAP_HUGETLB
Hi Cyril, Jan
Ping. :-)
Compilation failed on RHEL5.11GA.
Thanks,
Xiao Yang
Quoted 20 lines · Xiao Yang
Compilation failed on some older distributions due to undefined
MAP_HUGETLB, so we includelapi/mmap.hto fix it.Signed-off-by Xiao Yang <[email protected]>--- testcases/kernel/numa/support_numa.c | 1 + 1 file changed, 1 insertion(+)testcases/kernel/numa/support_numa.c +1
-0@@ -39,6 +39,7 @@#include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> +#include "lapi/mmap.h" /* Global Variables */ #define MB (1<<20)
PATCH 1/1 ltp/numa: Fix compilation without MAP_HUGETLB
----- Original Message -----
Quoted 5 lines
Hi Cyril, Jan
Ping. :-)
Compilation failed on RHEL5.11GA.
Pushed.
Thanks,
Jan
Quoted 30 lines
Thanks,
Xiao YangQuoted 21 lines · Xiao Yang
Compilation failed on some older distributions due to undefined
MAP_HUGETLB, so we includelapi/mmap.hto fix it.Signed-off-by Xiao Yang <[email protected]>--- testcases/kernel/numa/support_numa.c | 1 + 1 file changed, 1 insertion(+)testcases/kernel/numa/support_numa.c +1
-0@@ -39,6 +39,7 @@#include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> +#include "lapi/mmap.h" /* Global Variables */ #define MB (1<<20)