Changeset aac36d15 in rtems


Ignore:
Timestamp:
Aug 8, 2018, 9:17:36 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
f4424cfb
Parents:
8e6cfcc
git-author:
Sebastian Huber <sebastian.huber@…> (08/08/18 09:17:36)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/10/18 05:14:43)
Message:

posix: Add configure check for mprotect()

Update #3491.

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/configure.ac

    r8e6cfcc raac36d15  
    117117
    118118AC_LANG_PUSH(C)
     119AC_MSG_CHECKING([for mprotect(const void *, ...)])
     120AC_COMPILE_IFELSE([AC_LANG_SOURCE([
     121#include <sys/mman.h>
     122int mprotect(const void *, size_t, int);
     123])],[
     124AC_MSG_RESULT([yes])
     125AC_DEFINE(HAVE_MPROTECT_CONST, [], [mprotect(const void *, ...)])
     126],[
     127AC_MSG_RESULT([no])
     128])
    119129AC_MSG_CHECKING([for pthread_mutex_getprioceiling(const pthread_mutex_t *, ...)])
    120130AC_COMPILE_IFELSE([AC_LANG_SOURCE([
  • cpukit/posix/src/mprotect.c

    r8e6cfcc raac36d15  
    3232
    3333int mprotect(
     34#ifdef HAVE_MPROTECT_CONST
    3435  const void *addr,
     36#else
     37  void *addr,
     38#endif
    3539  size_t len,
    3640  int prot
Note: See TracChangeset for help on using the changeset viewer.