Module: kamailio
Branch: master
Commit: c413392a3bae1efdc40671b11da83bec173caff5
URL:
https://github.com/kamailio/kamailio/commit/c413392a3bae1efdc40671b11da83be…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-12-22T09:53:16+01:00
jansson: fix build warning
CC (gcc) [M jansson.so] jansson_utils.o
jansson_utils.c:23: warning: "_GNU_SOURCE" redefined
23 | #define _GNU_SOURCE
|
<command-line>: note: this is the location of the previous definition
---
Modified: src/modules/jansson/jansson_utils.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c413392a3bae1efdc40671b11da83be…
Patch:
https://github.com/kamailio/kamailio/commit/c413392a3bae1efdc40671b11da83be…
---
diff --git a/src/modules/jansson/jansson_utils.c b/src/modules/jansson/jansson_utils.c
index c5e9a1560c2..61a9377c474 100644
--- a/src/modules/jansson/jansson_utils.c
+++ b/src/modules/jansson/jansson_utils.c
@@ -19,8 +19,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
-
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <jansson.h>
#include <limits.h>