summarylogtreecommitdiffstats
path: root/bug_2067.patch
blob: be0100814b4e5bf70660635035e62af4bdbd1229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/pcre2grep.c b/src/pcre2grep.c
index e98d743..f00dac2 100644
--- a/src/pcre2grep.c
+++ b/src/pcre2grep.c
@@ -628,7 +628,7 @@ z/OS, and "no support". */

 /************* Directory scanning Unix-style and z/OS ***********/

-#if (defined HAVE_SYS_STAT_H && defined HAVE_DIRENT_H && defined HAVE_SYS_TYPES_H) || defined NATIVE_ZOS
+#if ((defined HAVE_SYS_STAT_H && defined HAVE_DIRENT_H && defined HAVE_SYS_TYPES_H) || defined NATIVE_ZOS) && !defined WIN32
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <dirent.h>