aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_backup_directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pg_dump/pg_backup_directory.c')
-rw-r--r--src/bin/pg_dump/pg_backup_directory.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/bin/pg_dump/pg_backup_directory.c b/src/bin/pg_dump/pg_backup_directory.c
index b441ceaa46b..0fae53b3468 100644
--- a/src/bin/pg_dump/pg_backup_directory.c
+++ b/src/bin/pg_dump/pg_backup_directory.c
@@ -186,12 +186,6 @@ InitArchiveFmt_Directory(ArchiveHandle *AH)
}
}
-#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)
exit_horribly(modulename, "could not read directory \"%s\": %s\n",
ctx->directory, strerror(errno));