aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/file/fd.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2014-03-21 13:47:37 -0400
committerBruce Momjian <bruce@momjian.us>2014-03-21 13:47:37 -0400
commit1494931d7375ccdc6afd34f135bc708f8954eecc (patch)
tree2e2262b09d4fb94b1f7fe4d8ebf6c21ba32bea72 /src/backend/storage/file/fd.c
parent6f03927fce038096f53ca67eeab9adb24938f8a6 (diff)
downloadpostgresql-1494931d7375ccdc6afd34f135bc708f8954eecc.tar.gz
postgresql-1494931d7375ccdc6afd34f135bc708f8954eecc.zip
Remove MinGW readdir/errno bug workaround fixed on 2003-10-10
Diffstat (limited to 'src/backend/storage/file/fd.c')
-rw-r--r--src/backend/storage/file/fd.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index 5158cfe806f..42dbe87ca4b 100644
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -1956,12 +1956,6 @@ ReadDir(DIR *dir, const char *dirname)
if ((dent = readdir(dir)) != NULL)
return dent;
-#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)
ereport(ERROR,
(errcode_for_file_access(),