From aac36d153aa88d666a2a6a7a4a49520e3aec7c17 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 8 Aug 2018 11:17:36 +0200 Subject: posix: Add configure check for mprotect() Update #3491. --- cpukit/configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpukit/configure.ac') diff --git a/cpukit/configure.ac b/cpukit/configure.ac index 17c47f445e..1809973afe 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -116,6 +116,16 @@ RTEMS_CHECK_FUNC([pthread_getattr_np],[ #include ]) AC_LANG_PUSH(C) +AC_MSG_CHECKING([for mprotect(const void *, ...)]) +AC_COMPILE_IFELSE([AC_LANG_SOURCE([ +#include +int mprotect(const void *, size_t, int); +])],[ +AC_MSG_RESULT([yes]) +AC_DEFINE(HAVE_MPROTECT_CONST, [], [mprotect(const void *, ...)]) +],[ +AC_MSG_RESULT([no]) +]) AC_MSG_CHECKING([for pthread_mutex_getprioceiling(const pthread_mutex_t *, ...)]) AC_COMPILE_IFELSE([AC_LANG_SOURCE([ #include -- cgit v1.2.3