Fix build

This commit is contained in:
Alexey Milovidov 2021-11-24 22:43:12 +03:00
parent 8e4c7fccc3
commit f1b8e2a2c8

View File

@ -6,6 +6,20 @@
namespace fs = std::filesystem;
namespace DB
{
namespace ErrorCodes
{
extern const int LOGICAL_ERROR;
extern const int ATOMIC_RENAME_FAIL;
extern const int SYSTEM_ERROR;
extern const int UNSUPPORTED_METHOD;
extern const int FILE_ALREADY_EXISTS;
}
}
#if defined(__linux__)
@ -41,15 +55,6 @@ namespace fs = std::filesystem;
namespace DB
{
namespace ErrorCodes
{
extern const int LOGICAL_ERROR;
extern const int ATOMIC_RENAME_FAIL;
extern const int SYSTEM_ERROR;
extern const int UNSUPPORTED_METHOD;
extern const int FILE_ALREADY_EXISTS;
}
static bool supportsRenameat2Impl()
{
VersionNumber renameat2_minimal_version(3, 15, 0);