*** postgresql-snapshot-030203/src/backend/access/transam/slru.c	Wed Jan 28 22:02:39 2004
--- postgresql-win32-mha/src/backend/access/transam/slru.c	Wed Feb  4 23:31:50 2004
***************
*** 916,921 ****
--- 916,925 ----
  		}
  		errno = 0;
  	}
+ #ifdef WIN32
+ #warning Workaround for bug in mingw. Fixed in mingw cvs, but not released version.
+ 	if (errno == 2) errno = 0;
+ #endif
  	if (errno)
  		ereport(ERROR,
  				(errcode_for_file_access(),
