Module: kamailio
Branch: master
Commit: 86c57ef77848513e3224c73a6d2889e8a2bd6fc3
URL:
https://github.com/kamailio/kamailio/commit/86c57ef77848513e3224c73a6d2889e…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-12-22T09:58:39+01:00
db_text: fix build warning
CC (gcc) [M db_text.so] dbt_raw_query.o
dbt_raw_query.c:23: warning: "_GNU_SOURCE" redefined
23 | #define _GNU_SOURCE
|
<command-line>: note: this is the location of the previous definition
---
Modified: src/modules/db_text/dbt_raw_query.c
---
Diff:
https://github.com/kamailio/kamailio/commit/86c57ef77848513e3224c73a6d2889e…
Patch:
https://github.com/kamailio/kamailio/commit/86c57ef77848513e3224c73a6d2889e…
---
diff --git a/src/modules/db_text/dbt_raw_query.c b/src/modules/db_text/dbt_raw_query.c
index a6dc37a69b7..ede61fe3525 100644
--- a/src/modules/db_text/dbt_raw_query.c
+++ b/src/modules/db_text/dbt_raw_query.c
@@ -19,8 +19,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <string.h>
#include "../../core/str.h"