Index: configure.in =================================================================== RCS file: /cvsroot/pgsql-server/configure.in,v retrieving revision 1.242 diff -c -c -r1.242 configure.in *** configure.in 6 Apr 2003 22:45:22 -0000 1.242 --- configure.in 21 Apr 2003 14:24:02 -0000 *************** *** 856,863 **** esac # Solaris has a very slow qsort in certain cases, so we replace it. ! case $host_os in ! solaris*) AC_LIBOBJ(qsort) ;; esac # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a; --- 856,868 ---- esac # Solaris has a very slow qsort in certain cases, so we replace it. ! case $host_os in solaris*) ! AC_LIBOBJ(qsort) ;; ! esac ! ! # Win32 can't to rename or unlink on an open file ! case $host_os in win32*) ! AC_LIBOBJ(dirmod) ;; esac # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a; Index: src/include/c.h =================================================================== RCS file: /cvsroot/pgsql-server/src/include/c.h,v retrieving revision 1.138 diff -c -c -r1.138 c.h *** src/include/c.h 18 Apr 2003 01:03:42 -0000 1.138 --- src/include/c.h 21 Apr 2003 14:24:24 -0000 *************** *** 711,716 **** --- 711,727 ---- off_t ftello(FILE *stream); #endif + /* + * Win32 doesn't have reliable rename/unlink during concurrent access + */ + #ifdef WIN32 + int pgrename(const char *from, const char *to); + int pgunlink(const char *path); + #define rename(path) pgrename(path) + #define unlink(from, to) pgunlink(from, to) + #endif + + /* These are for things that are one way on Unix and another on NT */ #define NULL_DEV "/dev/null"