summaryrefslogtreecommitdiff
path: root/contrib/expat/xmlwf/readfilemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/expat/xmlwf/readfilemap.c')
-rw-r--r--contrib/expat/xmlwf/readfilemap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/expat/xmlwf/readfilemap.c b/contrib/expat/xmlwf/readfilemap.c
index bd32b9341471..d816b263aae1 100644
--- a/contrib/expat/xmlwf/readfilemap.c
+++ b/contrib/expat/xmlwf/readfilemap.c
@@ -8,16 +8,17 @@
#include <stdlib.h>
#include <stdio.h>
+/* Functions close(2) and read(2) */
#ifdef __WATCOMC__
#ifndef __LINUX__
#include <io.h>
#else
#include <unistd.h>
#endif
-#endif
-
-#ifdef __BEOS__
-#include <unistd.h>
+#else
+# if !defined(WIN32) && !defined(_WIN32) && !defined(_WIN64)
+# include <unistd.h>
+# endif
#endif
#ifndef S_ISREG