aboutsummaryrefslogtreecommitdiff
path: root/src/port/pgcheckdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/port/pgcheckdir.c')
-rw-r--r--src/port/pgcheckdir.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/port/pgcheckdir.c b/src/port/pgcheckdir.c
index 502d4f377d9..07f250e9d4a 100644
--- a/src/port/pgcheckdir.c
+++ b/src/port/pgcheckdir.c
@@ -64,12 +64,6 @@ pg_check_dir(const char *dir)
}
}
-#ifdef WIN32
- /* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
- if (GetLastError() == ERROR_NO_MORE_FILES)
- errno = 0;
-#endif
-
if (errno || closedir(chkdir))
result = -1; /* some kind of I/O error? */