#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>
#include "compiler.h"
#include "conf.h"
-#include "config.h"
#include "memory_utils.h"
struct lxc_conf;
#define SECCOMP_FILTER_FLAG_NEW_LISTENER (1UL << 3)
#endif
-#ifdef HAVE_SECCOMP
+#if HAVE_SECCOMP
#if HAVE_DECL_SECCOMP_NOTIFY_FD
char *cookie;
};
-#define HAVE_SECCOMP_NOTIFY 1
-
#endif /* HAVE_DECL_SECCOMP_NOTIFY_FD */
struct lxc_seccomp {