Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8878f4a

Browse files
committed
For immediate application to HEAD.
Corrects bit-rot of recently applied patch. win32/cygwin only.Claudio Natoli
1 parent23168fb commit8878f4a

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
#ifndefFRONTEND
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
#ifndefFRONTEND
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
#ifndefFRONTEND
9188
elog(LOG,"could not unlink \"%s\", continuing to try",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp