From 9457d3a269dea3d87a1e6384060a24335bb62dbd Mon Sep 17 00:00:00 2001 From: xsren <285808407@qq.com> Date: Mon, 5 Feb 2024 16:07:40 +0800 Subject: [PATCH] fix: build failed on linux --- source/os/src/osFile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/os/src/osFile.c b/source/os/src/osFile.c index d20640cc0e..bab9ba0cea 100644 --- a/source/os/src/osFile.c +++ b/source/os/src/osFile.c @@ -1033,7 +1033,7 @@ int64_t taosFSendFile(TdFilePtr pFileOut, TdFilePtr pFileIn, int64_t *offset, in #endif } -bool lastErrorIsFileNotExist() { return dwError == ENOENT; } +bool lastErrorIsFileNotExist() { return errno == ENOENT; } #endif // WINDOWS