summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mprotect.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/mprotect.c')
-rw-r--r--cpukit/posix/src/mprotect.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/cpukit/posix/src/mprotect.c b/cpukit/posix/src/mprotect.c
index 51b565ea54..94bd316ffb 100644
--- a/cpukit/posix/src/mprotect.c
+++ b/cpukit/posix/src/mprotect.c
@@ -28,16 +28,10 @@
#endif
#include <unistd.h>
-
-/*
- * RTEMS does not have <sys/mman.h> so we need a prototype here to
- * avoid warnings.
- */
-
-int mprotect( const void *, size_t, int );
+#include <sys/mman.h>
int mprotect(
- const void *addr __attribute__((unused)),
+ void *addr __attribute__((unused)),
size_t len __attribute__((unused)),
int prot __attribute__((unused)) )
{