seccomp: Don't include libseccomp from QEMU header
authorFam Zheng <famz@redhat.com>
Wed, 20 Sep 2017 08:36:47 +0000 (16:36 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Sep 2017 08:48:33 +0000 (09:48 +0100)
The only prototype doesn't need anything from the lib header, and not
including it here allows files that include this header, for example
vl.c, to compile without the libseccomp cflags.

The breakage is since c3883e1f93 for environments where `pkg-config
--cflags libseccomp" is non-empty.

Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Acked-by: Eduardo Otubo <otubo@redhat.com>
Message-id: 20170920083647.14599-1-famz@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/sysemu/seccomp.h

index e67c2dc840cef91bac570253d8cf6e3cc03ee94a..9b092aa23f611dcc31c0316776b0589a5eb82bc4 100644 (file)
@@ -21,7 +21,5 @@
 #define QEMU_SECCOMP_SET_SPAWN       (1 << 3)
 #define QEMU_SECCOMP_SET_RESOURCECTL (1 << 4)
 
-#include <seccomp.h>
-
 int seccomp_start(uint32_t seccomp_opts);
 #endif