]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
define some macros to fix the build
authorTycho Andersen <tycho.andersen@canonical.com>
Fri, 30 Jan 2015 14:53:53 +0000 (15:53 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 30 Jan 2015 15:04:02 +0000 (16:04 +0100)
Not all kernels have these macros; they'll just give an EINVAL if/when invoked.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/utils.c

index 9acf7e6722c5a82c142d76bdbfd49b0c375154c3..f9533dbcb0acc215fd023a5af36edd4249e9937a 100644 (file)
 #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,