From f424fa8f3ed5883c5624cf0a494537a5ec912d35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Wed, 13 Mar 2013 23:21:15 -0400 Subject: [PATCH] Add missing config.h includes. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit conf.h and start.h weren't explicitly including config.h which meant that depending on the ordering of the includes in whatever was including conf.h or start.h, some pieces of the structs defined in those may be missing. This led amongst other problems to the lxc_conf struct being wrong by 8 bytes for functions from commands.c, leading to lxc-stop always failing. Signed-off-by: Stéphane Graber Signed-off-by: Serge E. Hallyn --- src/lxc/conf.h | 2 ++ src/lxc/start.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/lxc/conf.h b/src/lxc/conf.h index f05c0737b..83bdb0c63 100644 --- a/src/lxc/conf.h +++ b/src/lxc/conf.h @@ -23,6 +23,8 @@ #ifndef _conf_h #define _conf_h +#include "config.h" + #include #include #include diff --git a/src/lxc/start.h b/src/lxc/start.h index 5b3488f9e..99a55b79b 100644 --- a/src/lxc/start.h +++ b/src/lxc/start.h @@ -23,6 +23,8 @@ #ifndef __lxc_state_h #define __lxc_state_h +#include "config.h" + #include #include -- 2.47.2