|
10 | 10 | *Win32 (NT, Win2k, XP).replace() doesn't work on Win95/98/Me. |
11 | 11 | * |
12 | 12 | * IDENTIFICATION |
13 | | - * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.11 2004/02/25 19:41:23 momjian Exp $ |
| 13 | + * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.12 2004/02/26 02:59:26 momjian Exp $ |
14 | 14 | * |
15 | 15 | *------------------------------------------------------------------------- |
16 | 16 | */ |
|
19 | 19 |
|
20 | 20 | #if defined(WIN32)|| defined(__CYGWIN__) |
21 | 21 |
|
22 | | -#ifdef__CYGWIN__ |
23 | | -#include<sys/time.h>/* timeval definition for PG_USLEEP */ |
24 | | -#endif |
25 | 22 |
|
26 | 23 | #ifndefFRONTEND |
27 | 24 | #include"postgres.h" |
@@ -53,7 +50,7 @@ pgrename(const char *from, const char *to) |
53 | 50 | #endif |
54 | 51 | /* set errno? */ |
55 | 52 | return-1; |
56 | | -PG_USLEEP(100000);/* us */ |
| 53 | +pg_usleep(100000);/* us */ |
57 | 54 | if (loops==30) |
58 | 55 | #ifndefFRONTEND |
59 | 56 | elog(LOG,"could not rename \"%s\" to \"%s\", continuing to try", |
@@ -85,7 +82,7 @@ pgunlink(const char *path) |
85 | 82 | if (errno!=EACCES) |
86 | 83 | /* set errno? */ |
87 | 84 | return-1; |
88 | | -PG_USLEEP(100000);/* us */ |
| 85 | +pg_usleep(100000);/* us */ |
89 | 86 | if (loops==30) |
90 | 87 | #ifndefFRONTEND |
91 | 88 | elog(LOG,"could not unlink \"%s\", continuing to try", |
|