diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 555b45bbcad042f6fee95b16fdb2cdc70426f5e0..25d8277d47a76a096a6b572e81f5c0479e9008b3 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 08b696ba1aedb80ecc17997811591fea1209f1ae..ecfaf005484744b367686af82b76583a576bff10 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