mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
In pg_upgrade, only compile copy_file() on non-Win32 systems.
Per report from Andrew Dunstan.
This commit is contained in:
@ -12,9 +12,10 @@
|
|||||||
#include <fcntl.h>
|
#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);
|
static int win32_pghardlink(const char *src, const char *dst);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -126,6 +127,7 @@ linkAndUpdateFile(pageCnvCtx *pageConverter,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef WIN32
|
||||||
static int
|
static int
|
||||||
copy_file(const char *srcfile, const char *dstfile, bool force)
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user