diff options
author | dtorilov <dtorilov@yandex-team.com> | 2024-03-28 21:07:32 +0300 |
---|---|---|
committer | dtorilov <dtorilov@yandex-team.com> | 2024-03-28 21:18:22 +0300 |
commit | 69da0d084c7045f516e59ff13afeb15a3f313b5d (patch) | |
tree | 03a0355dba12f54746d8f24133c1551d8fdaf5f4 /util/folder/fts.cpp | |
parent | 22f953d76634703f1ac2d06ec90fe270ceaafe74 (diff) | |
download | ydb-69da0d084c7045f516e59ff13afeb15a3f313b5d.tar.gz |
WebAssembly in util
b46c1e446c9d0f9393bf688b26db810f60add0f6
Diffstat (limited to 'util/folder/fts.cpp')
-rw-r--r-- | util/folder/fts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/folder/fts.cpp b/util/folder/fts.cpp index b2e75c8eca..609a56b076 100644 --- a/util/folder/fts.cpp +++ b/util/folder/fts.cpp @@ -174,7 +174,7 @@ dird get_dird(char* path) { static int fts_safe_changedir(FTS*, FTSENT*, int, dird); #endif -#if defined(__svr4__) || defined(__linux__) || defined(__CYGWIN__) || defined(_win_) +#if defined(__svr4__) || defined(__linux__) || defined(__CYGWIN__) || defined(_win_) || defined(_emscripten_) #ifdef MAX #undef MAX #endif @@ -183,7 +183,7 @@ static int fts_safe_changedir(FTS*, FTSENT*, int, dird); #undef ALIGN #define ALIGNBYTES (sizeof(long long) - 1) #define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) & ~ALIGNBYTES) - #if !defined(__linux__) && !defined(__CYGWIN__) + #if !defined(__linux__) && !defined(__CYGWIN__) && !defined(_emscripten_) #define dirfd(dirp) ((dirp)->dd_fd) #endif #define D_NAMLEN(dirp) (strlen(dirp->d_name)) |