提交 cb7287dd 编写于 作者: S Shengliang Guan

fix compile errors

上级 4b3301be
...@@ -272,7 +272,7 @@ int32_t readFromFile(char *name, uint32_t *len, void **buf) { ...@@ -272,7 +272,7 @@ int32_t readFromFile(char *name, uint32_t *len, void **buf) {
return TAOS_SYSTEM_ERROR(errno); return TAOS_SYSTEM_ERROR(errno);
} }
int64_t s = taosReadImp(fd, *buf, *len); int64_t s = taosRead(fd, *buf, *len);
if (s != *len) { if (s != *len) {
tscError("read file %s failed, error:%s", name, strerror(errno)); tscError("read file %s failed, error:%s", name, strerror(errno));
close(fd); close(fd);
......
...@@ -4,4 +4,4 @@ PROJECT(TDengine) ...@@ -4,4 +4,4 @@ PROJECT(TDengine)
AUX_SOURCE_DIRECTORY(. SRC) AUX_SOURCE_DIRECTORY(. SRC)
ADD_LIBRARY(oslinux ${SRC}) ADD_LIBRARY(oslinux ${SRC})
TARGET_LINK_LIBRARIES(oslinux m rt z) TARGET_LINK_LIBRARIES(oslinux m rt z dl)
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册