diff --git a/ydb/library/yql/tools/udf_resolver/udf_resolver.cpp b/ydb/library/yql/tools/udf_resolver/udf_resolver.cpp index 988238fa3ce9..91224801543b 100644 --- a/ydb/library/yql/tools/udf_resolver/udf_resolver.cpp +++ b/ydb/library/yql/tools/udf_resolver/udf_resolver.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #ifndef GRND_RANDOM #include #endif @@ -54,6 +55,23 @@ #endif #endif + +#if !defined(SYS_newfstatat) +#if defined(__x86_64__) + #define SYS_newfstatat 262 +#elif defined(__i386__) + #error Unsupported syscall +#elif defined(__aarch64__) + #define SYS_newfstatat 79 +#elif defined(__arm__) + #error Unsupported syscall +#elif defined(__powerpc__) + #define SYS_newfstatat 291 +#else +#error Unsupported platform +#endif +#endif + #endif using namespace NKikimr; @@ -378,6 +396,7 @@ int main(int argc, char **argv) { Allow(munlockall), Allow(munmap), Allow(nanosleep), + Allow(newfstatat), #ifndef _arm64_ Allow(open), #endif