[lxc-devel] [PATCH 4/8] Include limits.h for NAME_MAX

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


Quoting Natanael Copa (ncopa at alpinelinux.org):
> This fixes compile error with musl libc:
> In file included from start.c:66:0:
> monitor.h:38:12: error: 'NAME_MAX' undeclared here (not in a function)
>   char name[NAME_MAX+1];
>             ^
> 
> Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>

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

> ---
>  src/lxc/monitor.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/lxc/monitor.h b/src/lxc/monitor.h
> index 7e2a468..a7eb110 100644
> --- a/src/lxc/monitor.h
> +++ b/src/lxc/monitor.h
> @@ -23,6 +23,7 @@
>  #ifndef __monitor_h
>  #define __monitor_h
>  
> +#include <limits.h>
>  #include <sys/param.h>
>  #include <sys/un.h>
>  
> -- 
> 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