From: Stéphane Graber Date: Thu, 14 Mar 2013 03:21:15 +0000 (-0400) Subject: Add missing config.h includes. X-Git-Tag: lxc-0.9.0.rc1~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f424fa8f3ed5883c5624cf0a494537a5ec912d35;p=thirdparty%2Flxc.git Add missing config.h includes. 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 --- 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