[lxc-devel] [PATCH 3/8] Include strings.h for strcasecmp

Serge Hallyn serge.hallyn at ubuntu.com
Wed Jan 29 14:36:36 UTC 2014


Quoting Natanael Copa (ncopa at alpinelinux.org):
> This fixes the following error with musl libc:
> In file included from start.c:59:0:
> log.h: In function 'lxc_log_priority_to_int':
> log.h:136:2: error: implicit declaration of function 'strcasecmp' [-Werror=implicit-function-declaration]
> 
> Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

> ---
>  src/lxc/log.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/lxc/log.h b/src/lxc/log.h
> index 4a42665..4a9714a 100644
> --- a/src/lxc/log.h
> +++ b/src/lxc/log.h
> @@ -28,6 +28,7 @@
>  #include <stdio.h>
>  #include <sys/time.h>
>  #include <string.h>
> +#include <strings.h>
>  #include <stdbool.h>
>  
>  #ifndef O_CLOEXEC
> -- 
> 1.8.5.3
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list