diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-02-26 02:59:26 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-02-26 02:59:26 +0000 |
commit | 8878f4aee7b1d4816cc96fa6fdacad5af5c892bf (patch) | |
tree | ab31555316f6a0900d64dc978527c6e37810e842 /src | |
parent | 23168fb3bfd5304d0c497e4cd19e77a4ece4bb64 (diff) | |
download | postgresql-8878f4aee7b1d4816cc96fa6fdacad5af5c892bf.tar.gz postgresql-8878f4aee7b1d4816cc96fa6fdacad5af5c892bf.zip |
For immediate application to HEAD.
Corrects bit-rot of recently applied patch. win32/cygwin only.
Claudio Natoli
Diffstat (limited to 'src')
-rw-r--r-- | src/port/dirmod.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/port/dirmod.c b/src/port/dirmod.c index 51ddd875c5f..a0ab8a7a938 100644 --- a/src/port/dirmod.c +++ b/src/port/dirmod.c @@ -10,7 +10,7 @@ * 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 $ * *------------------------------------------------------------------------- */ @@ -19,9 +19,6 @@ #if defined(WIN32) || defined(__CYGWIN__) -#ifdef __CYGWIN__ -#include <sys/time.h> /* timeval definition for PG_USLEEP */ -#endif #ifndef FRONTEND #include "postgres.h" @@ -53,7 +50,7 @@ pgrename(const char *from, const char *to) #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", @@ -85,7 +82,7 @@ pgunlink(const char *path) 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", |