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/mmaptest04.c')
-rw-r--r--winsup/testsuite/winsup.api/mmaptest04.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/testsuite/winsup.api/mmaptest04.c b/winsup/testsuite/winsup.api/mmaptest04.c
index 56c4a88b7..52302bae1 100644
--- a/winsup/testsuite/winsup.api/mmaptest04.c
+++ b/winsup/testsuite/winsup.api/mmaptest04.c
@@ -2,6 +2,9 @@
#include <fcntl.h>
#include <sys/mman.h>
#include <errno.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdio.h>
#ifndef O_BINARY
#define O_BINARY 0
@@ -10,7 +13,7 @@
int
main ()
{
- char *data, *data2, *data3;
+ char *data, *data2 = NULL, *data3;
int i, pagesize;
int fd;