From: Christian Brauner Date: Fri, 3 Sep 2021 14:09:43 +0000 (+0200) Subject: arguments: fix includes X-Git-Tag: lxc-5.0.0~92^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b53f80d4dee9b5f9ffc932bae1f31db0a507aec9;p=thirdparty%2Flxc.git arguments: fix includes Signed-off-by: Christian Brauner --- diff --git a/src/lxc/tools/arguments.c b/src/lxc/tools/arguments.c index 447031fc0..eb0336367 100644 --- a/src/lxc/tools/arguments.c +++ b/src/lxc/tools/arguments.c @@ -1,8 +1,7 @@ /* SPDX-License-Identifier: LGPL-2.1+ */ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#endif +#include "config.h" + #include #include #include @@ -13,11 +12,10 @@ #include #include -#include -#include +#include "lxccontainer.h" +#include "version.h" #include "arguments.h" -#include "compiler.h" #include "config.h" #include "initutils.h" #include "namespace.h" diff --git a/src/lxc/tools/arguments.h b/src/lxc/tools/arguments.h index 0af6f3332..e49913740 100644 --- a/src/lxc/tools/arguments.h +++ b/src/lxc/tools/arguments.h @@ -3,14 +3,15 @@ #ifndef __LXC_ARGUMENTS_H #define __LXC_ARGUMENTS_H +#include "config.h" + #include #include #include #include #include -#include - +#include "lxccontainer.h" #include "compiler.h" struct lxc_arguments;