From: Tycho Andersen Date: Fri, 30 Jan 2015 14:53:53 +0000 (+0100) Subject: define some macros to fix the build X-Git-Tag: lxc-1.1.1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69095f58c6f53b13cf49815f4a43d18f6f3f9caa;p=thirdparty%2Flxc.git define some macros to fix the build 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 --- 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,