Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/testsuite/winsup.api/mmaptest02.c')
-rw-r--r--winsup/testsuite/winsup.api/mmaptest02.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/testsuite/winsup.api/mmaptest02.c b/winsup/testsuite/winsup.api/mmaptest02.c
index ec5bac7f7..bec7c392c 100644
--- a/winsup/testsuite/winsup.api/mmaptest02.c
+++ b/winsup/testsuite/winsup.api/mmaptest02.c
@@ -7,6 +7,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
+#include <string.h>
sigset_t unblock_sigsegv;
jmp_buf r;
@@ -27,7 +28,7 @@ int fd;
*/
void
-perror_exit (char *str, int code)
+perror_exit (const char *str, int code)
{
printf ("%s: %s\n", str, strerror (errno));
exit (code);