All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] seccomp: Don't include libseccomp from QEMU header
@ 2017-09-20  8:36 Fam Zheng
  2017-09-22  7:09 ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Fam Zheng @ 2017-09-20  8:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: Eduardo Otubo, Jan Kiszka, Peter Maydell

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>

---

This is an alternative for

https://lists.gnu.org/archive/html/qemu-devel/2017-09/msg04470.html
([Qemu-devel] [PATCH] seccomp: Fix build)
---
 include/sysemu/seccomp.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/sysemu/seccomp.h b/include/sysemu/seccomp.h
index e67c2dc840..9b092aa23f 100644
--- a/include/sysemu/seccomp.h
+++ b/include/sysemu/seccomp.h
@@ -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
-- 
2.13.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-22  9:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-20  8:36 [Qemu-devel] [PATCH] seccomp: Don't include libseccomp from QEMU header Fam Zheng
2017-09-22  7:09 ` Jan Kiszka
2017-09-22  7:54   ` Eduardo Otubo
2017-09-22  9:35     ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.