summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mprotect.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-08 11:17:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-10 07:14:43 +0200
commitaac36d153aa88d666a2a6a7a4a49520e3aec7c17 (patch)
tree28b03009ca245d96555374641b4b0878c68148cc /cpukit/posix/src/mprotect.c
parentbsp/atsam: Fix handling of slow SPI speeds. (diff)
downloadrtems-aac36d153aa88d666a2a6a7a4a49520e3aec7c17.tar.bz2
posix: Add configure check for mprotect()
Update #3491.
Diffstat (limited to 'cpukit/posix/src/mprotect.c')
-rw-r--r--cpukit/posix/src/mprotect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/posix/src/mprotect.c b/cpukit/posix/src/mprotect.c
index 13017ce27c..76647c2700 100644
--- a/cpukit/posix/src/mprotect.c
+++ b/cpukit/posix/src/mprotect.c
@@ -31,7 +31,11 @@
#include <sys/mman.h>
int mprotect(
+#ifdef HAVE_MPROTECT_CONST
const void *addr,
+#else
+ void *addr,
+#endif
size_t len,
int prot
)