diff options
author | vvvv <vvvv@ydb.tech> | 2022-08-15 19:58:23 +0300 |
---|---|---|
committer | vvvv <vvvv@ydb.tech> | 2022-08-15 19:58:23 +0300 |
commit | 2f7c14c05b7d0a36336cf6bf025c4173048b9124 (patch) | |
tree | 8a520fb08115d734c979c4790859a2d246defcee | |
parent | c253d7f52b6e0a5beacc1d1ae4fa7b4509441c41 (diff) | |
download | ydb-2f7c14c05b7d0a36336cf6bf025c4173048b9124.tar.gz |
fix darwin build
-rw-r--r-- | ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp | 3 | ||||
-rw-r--r-- | ydb/library/yql/providers/s3/actors/yql_s3_source_factory.cpp | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp b/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp index eef54bc0a82..144289746f8 100644 --- a/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp +++ b/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp @@ -1,4 +1,5 @@ -#ifdef __linux__ +#include <util/system/platform.h> +#if defined(_linux_) || defined(_darwin_) #include <ydb/library/yql/udfs/common/clickhouse/client/src/DataTypes/DataTypeArray.h> #include <ydb/library/yql/udfs/common/clickhouse/client/src/DataTypes/DataTypeDate.h> #include <ydb/library/yql/udfs/common/clickhouse/client/src/DataTypes/DataTypeEnum.h> diff --git a/ydb/library/yql/providers/s3/actors/yql_s3_source_factory.cpp b/ydb/library/yql/providers/s3/actors/yql_s3_source_factory.cpp index f5817ad55f9..173846496fd 100644 --- a/ydb/library/yql/providers/s3/actors/yql_s3_source_factory.cpp +++ b/ydb/library/yql/providers/s3/actors/yql_s3_source_factory.cpp @@ -1,5 +1,7 @@ #include "yql_s3_source_factory.h" -#ifdef __linux__ + +#include <util/system/platform.h> +#if defined(_linux_) || defined(_darwin_) #include "yql_s3_read_actor.h" #include <ydb/library/yql/dq/actors/compute/dq_compute_actor_async_io.h> @@ -13,7 +15,7 @@ void RegisterS3ReadActorFactory( ISecuredServiceAccountCredentialsFactory::TPtr credentialsFactory, IHTTPGateway::TPtr gateway, const std::shared_ptr<NYql::NS3::TRetryConfig>&) { -#ifdef __linux__ +#if defined(_linux_) || defined(_darwin_) NDB::registerFormats(); factory.RegisterSource<NS3::TSource>("S3Source", [credentialsFactory, gateway](NS3::TSource&& settings, IDqAsyncIoFactory::TSourceArguments&& args) { |