From 69095f58c6f53b13cf49815f4a43d18f6f3f9caa Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Fri, 30 Jan 2015 15:53:53 +0100 Subject: [PATCH] define some macros to fix the build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Not all kernels have these macros; they'll just give an EINVAL if/when invoked. Signed-off-by: Tycho Andersen Acked-by: Stéphane Graber --- src/lxc/utils.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/lxc/utils.c b/src/lxc/utils.c index 9acf7e672..f9533dbcb 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.47.2