use-microsoft_native_stat-in-pgwin32_open.patch

text/x-patch

Filename: use-microsoft_native_stat-in-pgwin32_open.patch
Type: text/x-patch
Part: 0
Message: Re: More time spending with "delete pending"

Patch

Format: unified
File+
src/port/open.c 2 2
diff --git a/src/port/open.c b/src/port/open.c
index 14c6debba9..4bd11ca9d9 100644
--- a/src/port/open.c
+++ b/src/port/open.c
@@ -157,9 +157,9 @@ pgwin32_open(const char *fileName, int fileFlags,...)
 		{
 			if (loops < 10)
 			{
-				struct stat st;
+				struct microsoft_native_stat st;
 
-				if (stat(fileName, &st) != 0)
+				if (microsoft_native_stat(fileName, &st) != 0)
 				{
 					pg_usleep(100000);
 					loops++;