diff mbox series

[8/9] Skipping sys/syscall.h inclusion as only used in qemu_signalfd anyway

Message ID CA+XhMqzZaXorKXQKXRNue9bhbrE3iawtM6EHNUVjGOuSayuvAw@mail.gmail.com (mailing list archive)
State New, archived
Headers show
Series None | expand

Commit Message

David CARLIER June 29, 2020, 9:48 p.m. UTC
From b821b7e9bbf1f327058ee858a92c7a7ee6740e63 Mon Sep 17 00:00:00 2001
From: David Carlier <devnexen@gmail.com>
Date: Mon, 29 Jun 2020 22:20:39 +0000
Subject: [PATCH 8/9] Skipping sys/syscall.h inclusion as only used in
 qemu_signalfd anyway.

Signed-off-by: David Carlier <devnexen@gmail.com>
---
 util/compatfd.c | 2 ++
 1 file changed, 2 insertions(+)

--
2.26.0

Comments

Peter Maydell July 3, 2020, 1:52 p.m. UTC | #1
On Tue, 30 Jun 2020 at 01:49, David CARLIER <devnexen@gmail.com> wrote:
>
> From b821b7e9bbf1f327058ee858a92c7a7ee6740e63 Mon Sep 17 00:00:00 2001
> From: David Carlier <devnexen@gmail.com>
> Date: Mon, 29 Jun 2020 22:20:39 +0000
> Subject: [PATCH 8/9] Skipping sys/syscall.h inclusion as only used in
>  qemu_signalfd anyway.
>
> Signed-off-by: David Carlier <devnexen@gmail.com>
> ---
>  util/compatfd.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM
diff mbox series

Patch

diff --git a/util/compatfd.c b/util/compatfd.c
index c296f55d14..ee47dd8089 100644
--- a/util/compatfd.c
+++ b/util/compatfd.c
@@ -16,7 +16,9 @@ 
 #include "qemu/osdep.h"
 #include "qemu/thread.h"

+#if defined(CONFIG_SIGNALFD)
 #include <sys/syscall.h>
+#endif

 struct sigfd_compat_info
 {