From 1494931d7375ccdc6afd34f135bc708f8954eecc Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 21 Mar 2014 13:47:37 -0400 Subject: Remove MinGW readdir/errno bug workaround fixed on 2003-10-10 --- src/backend/storage/file/fd.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/backend/storage') 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(), -- cgit v1.2.3