]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf.c: Define LO_FLAGS_AUTOCLEAR if it's not
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 3 Jan 2013 17:24:09 +0000 (12:24 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 9 Jan 2013 15:10:22 +0000 (10:10 -0500)
LO_FLAGS_AUTOCLEAR isn't defined on bionic, so add an extra ifndef
and set it to its usual value if it's not.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c

index 1c02850a25b8178ad2e4eb80ab9b213f8c4dffdb..ab1c994abeb9a407b3961d77a95a69fd32c979b2 100644 (file)
@@ -115,6 +115,10 @@ lxc_log_define(lxc_conf, lxc);
 #define PR_CAPBSET_DROP 24
 #endif
 
+#ifndef LO_FLAGS_AUTOCLEAR
+#define LO_FLAGS_AUTOCLEAR 4
+#endif
+
 char *lxchook_names[NUM_LXC_HOOKS] = {
        "pre-start", "pre-mount", "mount", "start", "post-stop" };