diff options
| author | Bruce Momjian | 2014-03-21 17:47:37 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2014-03-21 17:47:37 +0000 |
| commit | 1494931d7375ccdc6afd34f135bc708f8954eecc (patch) | |
| tree | 2e2262b09d4fb94b1f7fe4d8ebf6c21ba32bea72 /contrib | |
| parent | 6f03927fce038096f53ca67eeab9adb24938f8a6 (diff) | |
Remove MinGW readdir/errno bug workaround fixed on 2003-10-10
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/pg_archivecleanup/pg_archivecleanup.c | 6 | ||||
| -rw-r--r-- | contrib/pg_standby/pg_standby.c | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/contrib/pg_archivecleanup/pg_archivecleanup.c b/contrib/pg_archivecleanup/pg_archivecleanup.c index 039829e004..39348c6db1 100644 --- a/contrib/pg_archivecleanup/pg_archivecleanup.c +++ b/contrib/pg_archivecleanup/pg_archivecleanup.c @@ -165,12 +165,6 @@ CleanupPriorWALFiles(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 archive location \"%s\": %s\n", progname, archiveLocation, strerror(errno)); diff --git a/contrib/pg_standby/pg_standby.c b/contrib/pg_standby/pg_standby.c index 9134d649cd..d6b169264c 100644 --- a/contrib/pg_standby/pg_standby.c +++ b/contrib/pg_standby/pg_standby.c @@ -284,12 +284,6 @@ CustomizableCleanupPriorWALFiles(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 archive location \"%s\": %s\n", progname, archiveLocation, strerror(errno)); |
