[lxc-devel] [PATCH] cgroup: add bdev.h to fix the build error

Stéphane Graber stgraber at ubuntu.com
Mon Sep 16 01:57:33 UTC 2013


On Sat, Sep 14, 2013 at 04:36:27PM +0800, Qiang Huang wrote:
> Without this, my box will yell:
> cgroup.c: In function ‘lxc_setup_mount_cgroup’:
> cgroup.c:1219: error: ‘MS_RELATIME’ undeclared (first use in this
> function)
> cgroup.c:1219: error: (Each undeclared identifier is reported only once
> cgroup.c:1219: error: for each function it appears in.)
> 
> Signed-off-by: Qiang Huang <h.huangqiang at huawei.com>

Reproduced the issue when building on Android.

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  src/lxc/cgroup.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c
> index 876c60c..9417e77 100644
> --- a/src/lxc/cgroup.c
> +++ b/src/lxc/cgroup.c
> @@ -44,6 +44,7 @@
>  #include "list.h"
>  #include "conf.h"
>  #include "utils.h"
> +#include "bdev.h"
> 
>  #include <lxc/log.h>
>  #include <lxc/cgroup.h>
> -- 
> 1.8.3
> 

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130915/5a4ad54f/attachment.pgp>


More information about the lxc-devel mailing list