diff --git a/src/util/src/tcompare.c b/src/util/src/tcompare.c index 956943c0b6..36ba95e309 100644 --- a/src/util/src/tcompare.c +++ b/src/util/src/tcompare.c @@ -12,10 +12,15 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ +#define _BSD_SOURCE +#define _GNU_SOURCE +#define _XOPEN_SOURCE +#define _DEFAULT_SOURCE #include "tcompare.h" -#include +#include "tulog.h" #include "hash.h" +#include "regex.h" #include "os.h" #include "ttype.h" diff --git a/tests/script/general/parser/where.sim b/tests/script/general/parser/where.sim index 6b789de490..0f9e317b40 100644 --- a/tests/script/general/parser/where.sim +++ b/tests/script/general/parser/where.sim @@ -95,15 +95,15 @@ if $rows != 2 then return -1 endi -print $tbPrefix +print $tbPrefix, $data00 $data10 $tb = $tbPrefix . 0 -if $data00 != wh_tb1 then - print expect wh_tb1, actual:$data00 +if $data00 != $tb then + print expect $tb, actual:$data00 return -1 endi $tb = $tbPrefix . 1 -if $data10 != wh_tb0 then - print expect wh_tb0, actual:$data00 +if $data10 != $tb then + print expect $tb, actual:$data00 return -1 endi