* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.11 2004/02/25 19:41:23 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.12 2004/02/26 02:59:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#if defined(WIN32) || defined(__CYGWIN__)
-#ifdef __CYGWIN__
-#include <sys/time.h> /* timeval definition for PG_USLEEP */
-#endif
#ifndef FRONTEND
#include "postgres.h"
#endif
/* set errno? */
return -1;
- PG_USLEEP(100000); /* us */
+ pg_usleep(100000); /* us */
if (loops == 30)
#ifndef FRONTEND
elog(LOG, "could not rename \"%s\" to \"%s\", continuing to try",
if (errno != EACCES)
/* set errno? */
return -1;
- PG_USLEEP(100000); /* us */
+ pg_usleep(100000); /* us */
if (loops == 30)
#ifndef FRONTEND
elog(LOG, "could not unlink \"%s\", continuing to try",