]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: fix includes
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 3 Sep 2021 14:10:16 +0000 (16:10 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 3 Sep 2021 15:28:15 +0000 (17:28 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c
src/lxc/conf.h

index 60ed9aa9ec200b7273dcc19cd62cb8997f4c887f..aecd942285833fc6b29ebd416f6a286d2994fc83 100644 (file)
@@ -1,8 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
-#endif
+#include "config.h"
+
 #include <arpa/inet.h>
 #include <dirent.h>
 #include <errno.h>
@@ -39,7 +38,6 @@
 #include "caps.h"
 #include "cgroups/cgroup.h"
 #include "compiler.h"
-#include "config.h"
 #include "confile.h"
 #include "confile_utils.h"
 #include "error.h"
index 24bf1b71b13d3b8cd78cd508c1dbb1cd31f03a26..636b9017d88e372869ba4cc9a87785b36bbff7cd 100644 (file)
@@ -3,9 +3,8 @@
 #ifndef __LXC_CONF_H
 #define __LXC_CONF_H
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
-#endif
+#include "config.h"
+
 #include <linux/magic.h>
 #include <net/if.h>
 #include <netinet/in.h>
@@ -18,7 +17,6 @@
 #include "attach_options.h"
 #include "caps.h"
 #include "compiler.h"
-#include "config.h"
 #include "hlist.h"
 #include "list.h"
 #include "lxcseccomp.h"