]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Add missing config.h includes.
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 14 Mar 2013 03:21:15 +0000 (23:21 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 14 Mar 2013 03:26:55 +0000 (23:26 -0400)
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 <stgraber@ubuntu.com>
Signed-off-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.h
src/lxc/start.h

index f05c0737b2ddc303f44160bbb15c9b4aeb7ce0e6..83bdb0c634f769b907748a037e76d85cc6a537da 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef _conf_h
 #define _conf_h
 
+#include "config.h"
+
 #include <netinet/in.h>
 #include <net/if.h>
 #include <sys/param.h>
index 5b3488f9e068035183db00cd76c6bfeec3a3948f..99a55b79b2d6cdab53f155e8efca591d9ca49689 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef __lxc_state_h
 #define __lxc_state_h
 
+#include "config.h"
+
 #include <lxc/state.h>
 #include <sys/param.h>