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);
                                     ^
This commit is contained in:
Ben Chan
2018-08-21 14:03:53 -07:00
committed by Aleksander Morgado
parent f6c310ba82
commit 7c5cfa13a1

View File

@@ -13,6 +13,8 @@
* Copyright (C) 2018 Aleksander Morgado <aleksander@aleksander.es> * Copyright (C) 2018 Aleksander Morgado <aleksander@aleksander.es>
*/ */
#include <string.h>
#include "mm-log.h" #include "mm-log.h"
#include "mm-modem-helpers.h" #include "mm-modem-helpers.h"
#include "mm-modem-helpers-xmm.h" #include "mm-modem-helpers-xmm.h"