Skip to content

Commit 8878f4a

Browse files
committed
For immediate application to HEAD.
Corrects bit-rot of recently applied patch. win32/cygwin only. Claudio Natoli
1 parent 23168fb commit 8878f4a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/port/dirmod.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
1111
*
1212
* 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 $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -19,9 +19,6 @@
1919

2020
#if defined(WIN32) || defined(__CYGWIN__)
2121

22-
#ifdef __CYGWIN__
23-
#include <sys/time.h> /* timeval definition for PG_USLEEP */
24-
#endif
2522

2623
#ifndef FRONTEND
2724
#include "postgres.h"
@@ -53,7 +50,7 @@ pgrename(const char *from, const char *to)
5350
#endif
5451
/* set errno? */
5552
return -1;
56-
PG_USLEEP(100000); /* us */
53+
pg_usleep(100000); /* us */
5754
if (loops == 30)
5855
#ifndef FRONTEND
5956
elog(LOG, "could not rename \"%s\" to \"%s\", continuing to try",
@@ -85,7 +82,7 @@ pgunlink(const char *path)
8582
if (errno != EACCES)
8683
/* set errno? */
8784
return -1;
88-
PG_USLEEP(100000); /* us */
85+
pg_usleep(100000); /* us */
8986
if (loops == 30)
9087
#ifndef FRONTEND
9188
elog(LOG, "could not unlink \"%s\", continuing to try",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy