diff --git a/src/os/inc/osMath.h b/src/os/inc/osMath.h index 99c2d4bca22ec42526241e7f1a3fa4fbc2b0d9d1..9935f94d39ef0431b7c9b1a524b956e6fafe9f4f 100644 --- a/src/os/inc/osMath.h +++ b/src/os/inc/osMath.h @@ -21,7 +21,7 @@ extern "C" { #endif #define POW2(x) ((x) * (x)) -#define ABS(x) ((x) > 0 ? (x) : (-x)) +#define ABS(x) ((x) > 0 ? (x) : -(x)) #ifndef TAOS_OS_FUNC_MATH #define SWAP(a, b, c) \ diff --git a/src/query/CMakeLists.txt b/src/query/CMakeLists.txt index 04e4852deec2aafe9c5f612ac8c96f0722751564..b9e7ff59e5f8a2bb28b570918385302465a1acc7 100644 --- a/src/query/CMakeLists.txt +++ b/src/query/CMakeLists.txt @@ -10,7 +10,7 @@ ADD_LIBRARY(query ${SRC}) SET_SOURCE_FILES_PROPERTIES(src/sql.c PROPERTIES COMPILE_FLAGS -w) IF (TD_LINUX) - TARGET_LINK_LIBRARIES(query tutil m rt) + TARGET_LINK_LIBRARIES(query tsdb tutil m rt) ADD_SUBDIRECTORY(tests) ELSEIF (TD_WINDOWS) TARGET_LINK_LIBRARIES(query tutil)