]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/compiler.h
github: Update for main branch
[mirror_lxc.git] / src / lxc / compiler.h
index ec071dc83ffbafcc3f584eb9bf768748cd9e3b7c..907941d9812072f6d459bcf62890ea18014bc5e9 100644 (file)
@@ -5,8 +5,14 @@
 
 #include "config.h"
 
-#include <stdbool.h>
+#include <assert.h>
+#include <errno.h>
+#include <inttypes.h>
 #include <linux/types.h>
+#include <stdbool.h>
+#include <sys/param.h>
+#include <sys/sysmacros.h>
+#include <sys/types.h>
 
 #ifndef thread_local
 #if __STDC_VERSION__ >= 201112L &&    \
@@ -18,7 +24,7 @@
 #endif
 #endif
 
-#if __GNUC__ >= 7
+#if HAVE_COMPILER_ATTR_FALLTHROUGH || __GNUC__ >= 7
 #define __fallthrough __attribute__((__fallthrough__))
 #else
 #define __fallthrough /* fall through */