fix compile errors

This commit is contained in:
Shengliang Guan 2021-05-12 20:25:07 +08:00
parent 4b3301be83
commit cb7287dd02
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -4,4 +4,4 @@ PROJECT(TDengine)
AUX_SOURCE_DIRECTORY(. SRC)
ADD_LIBRARY(oslinux ${SRC})
TARGET_LINK_LIBRARIES(oslinux m rt z)
TARGET_LINK_LIBRARIES(oslinux m rt z dl)