提交 f6322b31 编写于 作者: B Bruce Momjian

In pg_upgrade, only compile copy_file() on non-Win32 systems.

Per report from Andrew Dunstan.
上级 795c382e
......@@ -12,9 +12,10 @@
#include <fcntl.h>
static int copy_file(const char *fromfile, const char *tofile, bool force);
#ifdef WIN32
#ifndef WIN32
static int copy_file(const char *fromfile, const char *tofile, bool force);
#else
static int win32_pghardlink(const char *src, const char *dst);
#endif
......@@ -126,6 +127,7 @@ linkAndUpdateFile(pageCnvCtx *pageConverter,
}
#ifndef WIN32
static int
copy_file(const char *srcfile, const char *dstfile, bool force)
{
......@@ -220,6 +222,7 @@ copy_file(const char *srcfile, const char *dstfile, bool force)
return 1;
}
#endif
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册