From 7c5cfa13a19c2c59d003c938283652f071e7004d Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Tue, 21 Aug 2018 14:03:53 -0700 Subject: [PATCH] xmm: include string.h for strlen() This patch fixes the following compiler warning: xmm/mm-modem-helpers-xmm.c:388:38: error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration] g_regex_match_full (r, response, strlen (response), 0, 0, &match_info, &inner_error); ^ --- plugins/xmm/mm-modem-helpers-xmm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/xmm/mm-modem-helpers-xmm.c b/plugins/xmm/mm-modem-helpers-xmm.c index a8ede4cf..1c2280af 100644 --- a/plugins/xmm/mm-modem-helpers-xmm.c +++ b/plugins/xmm/mm-modem-helpers-xmm.c @@ -13,6 +13,8 @@ * Copyright (C) 2018 Aleksander Morgado */ +#include + #include "mm-log.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-xmm.h"