[PATCH] libqmi-glib: include <string.h> for strlen()

Aleksander Morgado aleksander at aleksander.es
Sat Oct 27 12:47:52 UTC 2018


On 10/27/18 8:10 AM, Ben Chan wrote:
> qmi-compat.c:99:38: error: implicit declaration of function ‘strlen’ [-Werror=implicit-function-declaration]
>                                       strlen (value_session_information_application_identifier));           \
>                                       ^

Pushed, thanks.

> ---
>  src/libqmi-glib/qmi-compat.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/libqmi-glib/qmi-compat.c b/src/libqmi-glib/qmi-compat.c
> index 9afc328..88f832c 100644
> --- a/src/libqmi-glib/qmi-compat.c
> +++ b/src/libqmi-glib/qmi-compat.c
> @@ -19,6 +19,8 @@
>   * Copyright (C) 2016-2018 Aleksander Morgado <aleksander at aleksander.es>
>   */
>  
> +#include <string.h>
> +
>  #include "qmi-compat.h"
>  #include "qmi-utils.h"
>  
> 


-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list