]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/lxcseccomp.h
github: Update for main branch
[mirror_lxc.git] / src / lxc / lxcseccomp.h
index 41293bcea1cb6f1b64cb71cf73dd35c6f80bd77c..93ff19ca0eec5440f376bca7f87c11b4c115ad1e 100644 (file)
@@ -3,14 +3,15 @@
 #ifndef __LXC_LXCSECCOMP_H
 #define __LXC_LXCSECCOMP_H
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
-#endif
+#include "config.h"
+
 #include <errno.h>
-#ifdef HAVE_SECCOMP
+
+#if HAVE_SECCOMP
 #include <linux/seccomp.h>
 #include <seccomp.h>
 #endif
+
 #if HAVE_DECL_SECCOMP_NOTIFY_FD
 #include <sys/socket.h>
 #include <sys/un.h>
@@ -18,7 +19,6 @@
 
 #include "compiler.h"
 #include "conf.h"
-#include "config.h"
 #include "memory_utils.h"
 
 struct lxc_conf;
@@ -29,7 +29,7 @@ struct lxc_handler;
 #define SECCOMP_FILTER_FLAG_NEW_LISTENER (1UL << 3)
 #endif
 
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
 
 
 #if HAVE_DECL_SECCOMP_NOTIFY_FD
@@ -62,8 +62,6 @@ struct seccomp_notify {
        char *cookie;
 };
 
-#define HAVE_SECCOMP_NOTIFY 1
-
 #endif /* HAVE_DECL_SECCOMP_NOTIFY_FD */
 
 struct lxc_seccomp {