Skip to content

Commit 52edb43

Browse files
committed
memory/patcher: check for linux/mman.h
Signed-off-by: Nathan Hjelm <[email protected]>
1 parent f8b3be6 commit 52edb43

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

opal/mca/memory/patcher/configure.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ AC_DEFUN([MCA_opal_memory_patcher_CONFIG],[
8484
AC_DEFINE_UNQUOTED([OPAL_MEMORY_PATCHER_HAVE___SYSCALL], [$memory_patcher_have___syscall],
8585
[Whether the internal __syscall call exists])
8686

87+
AC_CHECK_HEADERS([linux/mman.h])
88+
8789
[$1]
8890

8991
OPAL_VAR_SCOPE_POP

opal/mca/memory/patcher/memory_patcher_component.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
#include <sys/time.h>
4444
#include <sys/syscall.h>
4545

46+
#if defined(HAVE_LINUX_MMAN_H)
47+
#include <linux/mman.h>
48+
#endif
49+
4650
#include "memory_patcher.h"
4751
#undef opal_memory_changed
4852

0 commit comments

Comments
 (0)