2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 07:19:36 +00:00

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 <stgraber@ubuntu.com>
Signed-off-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Stéphane Graber
2013-03-13 23:21:15 -04:00
parent 2ac9aafca6
commit f424fa8f3e
2 changed files with 4 additions and 0 deletions

View 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>

View File

@@ -23,6 +23,8 @@
#ifndef __lxc_state_h
#define __lxc_state_h
#include "config.h"
#include <lxc/state.h>
#include <sys/param.h>