Skip to content

Commit b110f76

Browse files
committed
Merge pull request #1653 from jsquyres/pr/fix-memory-patcher-sys-syscall-h
memory/patcher: check for <sys/syscall.h>
2 parents 58de86e + acbd2c6 commit b110f76

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

opal/mca/memory/patcher/configure.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# University of Stuttgart. All rights reserved.
1111
# Copyright (c) 2004-2005 The Regents of the University of California.
1212
# All rights reserved.
13-
# Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
13+
# Copyright (c) 2008-2016 Cisco Systems, Inc. All rights reserved.
1414
# Copyright (c) 2015 Research Organization for Information Science
1515
# and Technology (RIST). All rights reserved.
1616
# Copyright (c) 2016 Los Alamos National Security, LLC. All rights
@@ -84,7 +84,7 @@ 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])
87+
AC_CHECK_HEADERS([linux/mman.h sys/syscall.h])
8888

8989
[$1]
9090

opal/mca/memory/patcher/memory_patcher_component.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@
4242
#include <dlfcn.h>
4343
#include <assert.h>
4444
#include <sys/time.h>
45+
#if defined(HAVE_SYS_SYSCALL_H)
4546
#include <sys/syscall.h>
46-
47+
#endif
4748
#if defined(HAVE_LINUX_MMAN_H)
4849
#include <linux/mman.h>
4950
#endif

0 commit comments

Comments
 (0)