]> git.proxmox.com Git - mirror_lxc.git/commitdiff
caps: fix includes
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 3 Sep 2021 14:14:16 +0000 (16:14 +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/caps.c
src/lxc/caps.h

index b3ab37a1f52bcacbe6d879236f2d9975b338f349..e464042d8dc8bd5b0c8562840c87b8df154d216a 100644 (file)
@@ -1,8 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
-#endif
+#include "config.h"
+
 #include <errno.h>
 #include <limits.h>
 #include <fcntl.h>
@@ -11,7 +10,6 @@
 #include <sys/prctl.h>
 
 #include "caps.h"
-#include "config.h"
 #include "file_utils.h"
 #include "log.h"
 #include "macro.h"
index c3e2c6d2149449a7085a22e28317d8f2290942be..2f8d802fd6bd07e38d413720b12df572f71e0206 100644 (file)
@@ -3,9 +3,10 @@
 #ifndef __LXC_CAPS_H
 #define __LXC_CAPS_H
 
+#include "config.h"
+
 #include <stdbool.h>
 
-#include "config.h"
 #include "compiler.h"
 
 #if HAVE_LIBCAP