mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Remove MinGW readdir/errno bug workaround fixed on 2003-10-10
This commit is contained in:
@@ -64,12 +64,6 @@ pg_check_dir(const char *dir)
|
||||
}
|
||||
}
|
||||
|
||||
#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 || closedir(chkdir))
|
||||
result = -1; /* some kind of I/O error? */
|
||||
|
||||
|
Reference in New Issue
Block a user