[lxc-devel] [PATCH] define some macros to fix the build

Stéphane Graber stgraber at ubuntu.com
Fri Jan 30 15:02:47 UTC 2015


On Fri, Jan 30, 2015 at 03:53:53PM +0100, Tycho Andersen wrote:
> Not all kernels have these macros; they'll just give an EINVAL if/when invoked.
> 
> Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>

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

> ---
>  src/lxc/utils.c | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/src/lxc/utils.c b/src/lxc/utils.c
> index 9acf7e6..f9533db 100644
> --- a/src/lxc/utils.c
> +++ b/src/lxc/utils.c
> @@ -46,6 +46,22 @@
>  #include "lxclock.h"
>  #include "namespace.h"
>  
> +#ifndef PR_SET_MM_ARG_START
> +#define PR_SET_MM_ARG_START 8
> +#endif
> +
> +#ifndef PR_SET_MM_ARG_END
> +#define PR_SET_MM_ARG_END 9
> +#endif
> +
> +#ifndef PR_SET_MM_ENV_START
> +#define PR_SET_MM_ENV_START 10
> +#endif
> +
> +#ifndef PR_SET_MM_ENV_END
> +#define PR_SET_MM_ENV_END 11
> +#endif
> +
>  lxc_log_define(lxc_utils, lxc);
>  
>  static int _recursive_rmdir_onedev(char *dirname, dev_t pdev,
> -- 
> 2.1.0
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
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: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20150130/50d58f7f/attachment-0001.sig>


More information about the lxc-devel mailing list