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/posix/src/mprotect.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpukit/posix/src/mprotect.c') 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 int mprotect( +#ifdef HAVE_MPROTECT_CONST const void *addr, +#else + void *addr, +#endif size_t len, int prot ) -- cgit v1.2.3