From cb7287dd02e1cb9e86bfc418dfabaff27323e7ff Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Wed, 12 May 2021 20:25:07 +0800 Subject: [PATCH] fix compile errors --- src/client/src/tscSQLParser.c | 2 +- src/os/src/linux/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 555b45bbca..25d8277d47 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -272,7 +272,7 @@ int32_t readFromFile(char *name, uint32_t *len, void **buf) { return TAOS_SYSTEM_ERROR(errno); } - int64_t s = taosReadImp(fd, *buf, *len); + int64_t s = taosRead(fd, *buf, *len); if (s != *len) { tscError("read file %s failed, error:%s", name, strerror(errno)); close(fd); diff --git a/src/os/src/linux/CMakeLists.txt b/src/os/src/linux/CMakeLists.txt index 08b696ba1a..ecfaf00548 100644 --- a/src/os/src/linux/CMakeLists.txt +++ b/src/os/src/linux/CMakeLists.txt @@ -4,4 +4,4 @@ PROJECT(TDengine) AUX_SOURCE_DIRECTORY(. SRC) ADD_LIBRARY(oslinux ${SRC}) -TARGET_LINK_LIBRARIES(oslinux m rt z) \ No newline at end of file +TARGET_LINK_LIBRARIES(oslinux m rt z dl) \ No newline at end of file -- GitLab