*** pgsql/src/port/dirmod.c 2008/04/10 16:59:42 1.44.2.2 --- pgsql/src/port/dirmod.c 2008/04/12 00:00:08 1.44.2.3 *************** *** 10,16 **** * Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me. * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.44.2.1 2006/12/04 22:24:04 momjian Exp $ * *------------------------------------------------------------------------- */ --- 10,16 ---- * Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me. * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.44.2.2 2008/04/10 16:59:42 mha Exp $ * *------------------------------------------------------------------------- */ *************** report_and_fail: *** 449,461 **** } ! #ifdef WIN32 /* * The stat() function in win32 is not guaranteed to update the st_size * field when run. So we define our own version that uses the Win32 API * to update this field. */ - #undef stat int pgwin32_safestat(const char *path, struct stat *buf) { --- 449,463 ---- } ! #if defined(WIN32) && !defined(__CYGWIN__) ! ! #undef stat ! /* * The stat() function in win32 is not guaranteed to update the st_size * field when run. So we define our own version that uses the Win32 API * to update this field. */ int pgwin32_safestat(const char *path, struct stat *buf) { *************** pgwin32_safestat(const char *path, struc *** 480,483 **** --- 482,486 ---- return 0; } + #endif