mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
Fix build
This commit is contained in:
parent
8e4c7fccc3
commit
f1b8e2a2c8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user