Module: kamailio
Branch: master
Commit: 361542a953ceaab1894f790e21eecf74008b749a
URL:
https://github.com/kamailio/kamailio/commit/361542a953ceaab1894f790e21eecf7…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-05-11T15:06:26+02:00
cfgt: fix implicit declaration of 'strcasestr'
cfgt_int.c: In function 'cfgt_msgout':
cfgt_int.c:863:21: warning: implicit declaration of function 'strcasestr'; did
you mean 'strcasecmp'? [-Wimplicit-function-declaration]
863 | if(buf->len > 7 && strcasestr(buf->s, "OPTIONS")) {
| ^~~~~~~~~~
| strcasecmp
---
Modified: src/modules/cfgt/cfgt_int.c
---
Diff:
https://github.com/kamailio/kamailio/commit/361542a953ceaab1894f790e21eecf7…
Patch:
https://github.com/kamailio/kamailio/commit/361542a953ceaab1894f790e21eecf7…
---
diff --git a/src/modules/cfgt/cfgt_int.c b/src/modules/cfgt/cfgt_int.c
index 382d696f53..c47a1cecc0 100644
--- a/src/modules/cfgt/cfgt_int.c
+++ b/src/modules/cfgt/cfgt_int.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
+#define _GNU_SOURCE
#include <stdio.h>
#include <sys/stat.h>
#include <dirent.h>