summaryrefslogtreecommitdiff
path: root/src/bin/pg_resetxlog/pg_resetxlog.c
diff options
context:
space:
mode:
authorBruce Momjian2014-03-21 17:47:37 +0000
committerBruce Momjian2014-03-21 17:47:37 +0000
commit1494931d7375ccdc6afd34f135bc708f8954eecc (patch)
tree2e2262b09d4fb94b1f7fe4d8ebf6c21ba32bea72 /src/bin/pg_resetxlog/pg_resetxlog.c
parent6f03927fce038096f53ca67eeab9adb24938f8a6 (diff)
Remove MinGW readdir/errno bug workaround fixed on 2003-10-10
Diffstat (limited to 'src/bin/pg_resetxlog/pg_resetxlog.c')
-rw-r--r--src/bin/pg_resetxlog/pg_resetxlog.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/bin/pg_resetxlog/pg_resetxlog.c b/src/bin/pg_resetxlog/pg_resetxlog.c
index af2cec7e932..b5d480e7b80 100644
--- a/src/bin/pg_resetxlog/pg_resetxlog.c
+++ b/src/bin/pg_resetxlog/pg_resetxlog.c
@@ -845,12 +845,6 @@ FindEndOfXLOG(void)
}
}
-#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)
{
fprintf(stderr, _("%s: could not read directory \"%s\": %s\n"),
@@ -908,12 +902,6 @@ KillExistingXLOG(void)
}
}
-#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)
{
fprintf(stderr, _("%s: could not read directory \"%s\": %s\n"),
@@ -966,12 +954,6 @@ KillExistingArchiveStatus(void)
}
}
-#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)
{
fprintf(stderr, _("%s: could not read directory \"%s\": %s\n"),