From c2c59c709e97067c8ee4ce8460c277cc7926a88b Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Mon, 11 May 2020 15:09:23 +0200 Subject: [PATCH] TT#81263 cfgt fix from upstream Change-Id: Id3cd923c938732e90d56a2a7a6b13710e4b6a146 --- debian/patches/series | 1 + ...x-implicit-declaration-of-strcasestr.patch | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 debian/patches/upstream/cfgt-fix-implicit-declaration-of-strcasestr.patch diff --git a/debian/patches/series b/debian/patches/series index c4e7a6564..1197aa26f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -62,6 +62,7 @@ upstream/core-KEMI-suport-for-ARRAY-and-DICT.patch upstream/pv-add-KEMI-functions-pvx.xavp_get_keys-and-pvx.xavp.patch upstream/pv-fixes-for-KEMI-pvx.xavp_getd.patch upstream/cfgt-don-t-process-non-sip-messages.patch +upstream/cfgt-fix-implicit-declaration-of-strcasestr.patch ## backport from kamailio trunk (5.3) # ### relevant for upstream diff --git a/debian/patches/upstream/cfgt-fix-implicit-declaration-of-strcasestr.patch b/debian/patches/upstream/cfgt-fix-implicit-declaration-of-strcasestr.patch new file mode 100644 index 000000000..e3bc4b197 --- /dev/null +++ b/debian/patches/upstream/cfgt-fix-implicit-declaration-of-strcasestr.patch @@ -0,0 +1,29 @@ +From 361542a953ceaab1894f790e21eecf74008b749a Mon Sep 17 00:00:00 2001 +From: Victor Seva +Date: Mon, 11 May 2020 15:06:26 +0200 +Subject: [PATCH] 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 +--- + src/modules/cfgt/cfgt_int.c | 1 + + 1 file changed, 1 insertion(+) + +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 + #include + #include +-- +2.20.1 +