[lxc-devel] [PATCH 08/21] conf.c: Define LO_FLAGS_AUTOCLEAR if it's not

Serge Hallyn serge.hallyn at canonical.com
Thu Jan 3 17:55:30 UTC 2013


Quoting Stéphane Graber (stgraber at ubuntu.com):
> LO_FLAGS_AUTOCLEAR isn't defined on bionic, so add an extra ifndef
> and set it to its usual value if it's not.
> 
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>

Sure - comes from the kernel source anyway.

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

> ---
>  src/lxc/conf.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/lxc/conf.c b/src/lxc/conf.c
> index 4f041dc..7e1d10a 100644
> --- a/src/lxc/conf.c
> +++ b/src/lxc/conf.c
> @@ -115,6 +115,10 @@ lxc_log_define(lxc_conf, lxc);
>  #define PR_CAPBSET_DROP 24
>  #endif
>  
> +#ifndef LO_FLAGS_AUTOCLEAR
> +#define LO_FLAGS_AUTOCLEAR 4
> +#endif
> +
>  char *lxchook_names[NUM_LXC_HOOKS] = {
>  	"pre-start", "pre-mount", "mount", "start", "post-stop" };
>  
> -- 
> 1.8.0
> 
> 
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel




More information about the lxc-devel mailing list