From 774356add1a2616d182d4dd8b08392c0be0b86bc Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Sat, 7 Nov 2020 21:40:33 +0800 Subject: [PATCH 1/2] [TD-1975] : fix build issue on CentOS 7. --- src/client/src/tscSQLParser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index 029e1fdb5a..f14f094e0b 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -16,6 +16,7 @@ #define _BSD_SOURCE #define _XOPEN_SOURCE 500 #define _DEFAULT_SOURCE +#define _POSIX_C_SOURCE 200809L #include "os.h" #include "qAst.h" From 604e2304fb8bdc885f8571ef3ebd587814f67605 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Sat, 7 Nov 2020 22:19:56 +0800 Subject: [PATCH 2/2] use _GNU_SOURCE instead of _POSIX_C_SOURCE --- src/client/src/tscSQLParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index f14f094e0b..34ea37d114 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -16,7 +16,7 @@ #define _BSD_SOURCE #define _XOPEN_SOURCE 500 #define _DEFAULT_SOURCE -#define _POSIX_C_SOURCE 200809L +#define _GNU_SOURCE #include "os.h" #include "qAst.h"