Skip to contentSkip to conversation

ltp/numa: Fix compilation without MAP_HUGETLB

PATCH New Xiao Yang 2 participants 3 messages May 31, 2017 – Jun 2, 2017

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

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.

---
 testcases/kernel/numa/support_numa.c | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/numa/support_numa.c +1 -0
index b6aa8bd..4904cc5 100644
@@ -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
author
#1 lore raw

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 include lapi/mmap.h to fix it.

---
 testcases/kernel/numa/support_numa.c | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/numa/support_numa.c +1 -0
index b6aa8bd..4904cc5 100644
@@ -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)
#2 lore raw

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 Yang

Quoted 21 lines · Xiao Yang

Compilation failed on some older distributions due to undefined MAP_HUGETLB, so we include lapi/mmap.h to fix it.

---
 testcases/kernel/numa/support_numa.c | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/numa/support_numa.c +1 -0
index b6aa8bd..4904cc5 100644
@@ -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)