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

Commitf6322b3

Browse files
committed
In pg_upgrade, only compile copy_file() on non-Win32 systems.
Per report from Andrew Dunstan.
1 parent795c382 commitf6322b3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎contrib/pg_upgrade/file.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
#include<fcntl.h>
1313

1414

15-
staticintcopy_file(constchar*fromfile,constchar*tofile,boolforce);
1615

17-
#ifdefWIN32
16+
#ifndefWIN32
17+
staticintcopy_file(constchar*fromfile,constchar*tofile,boolforce);
18+
#else
1819
staticintwin32_pghardlink(constchar*src,constchar*dst);
1920
#endif
2021

@@ -126,6 +127,7 @@ linkAndUpdateFile(pageCnvCtx *pageConverter,
126127
}
127128

128129

130+
#ifndefWIN32
129131
staticint
130132
copy_file(constchar*srcfile,constchar*dstfile,boolforce)
131133
{
@@ -220,6 +222,7 @@ copy_file(const char *srcfile, const char *dstfile, bool force)
220222

221223
return1;
222224
}
225+
#endif
223226

224227

225228
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp