qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Cc: David Carlier <devnexen@gmail.com>, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [PATCH v3 4/9] osdep.h: Always include <sys/signal.h> if it exists
Date: Fri, 3 Jul 2020 17:15:12 +0200	[thread overview]
Message-ID: <2b801122-1ee2-d62d-a5dc-30f7c770b54d@redhat.com> (raw)
In-Reply-To: <20200703145614.16684-5-peter.maydell@linaro.org>

On 03/07/2020 16.56, Peter Maydell wrote:
> From: David CARLIER <devnexen@gmail.com>
> 
> Regularize our handling of <sys/signal.h>: currently we include it in
> osdep.h, but only for OpenBSD, and we include it without an ifdef
> guard in a couple of C files.  This causes problems for Haiku, which
> doesn't have that header.
> 
> Instead, check in configure whether sys/signal.h exists, and if it
> does then always include it from osdep.h.
> 
> Signed-off-by: David Carlier <devnexen@gmail.com>
> [PMM: Expanded commit message]
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>  configure                   | 8 ++++++++
>  include/qemu/osdep.h        | 2 +-
>  hw/xen/xen-legacy-backend.c | 1 -
>  util/oslib-posix.c          | 1 -
>  4 files changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/configure b/configure
> index ddc53d873ef..d131f760d8f 100755
> --- a/configure
> +++ b/configure
> @@ -3212,6 +3212,11 @@ if ! check_include "ifaddrs.h" ; then
>    have_ifaddrs_h=no
>  fi
>  
> +have_sys_signal_h=no
> +if check_include "sys/signal.h" ; then
> +  have_sys_signal_h=yes
> +fi
> +
>  ##########################################
>  # VTE probe
>  
> @@ -7398,6 +7403,9 @@ fi
>  if test "$have_broken_size_max" = "yes" ; then
>      echo "HAVE_BROKEN_SIZE_MAX=y" >> $config_host_mak
>  fi
> +if test "$have_sys_signal_h" = "yes" ; then
> +    echo "CONFIG_SYS_SIGNAL=y" >> $config_host_mak
> +fi

I'd maybe rather name it HAVE_SYS_SIGNAL_H, but I guess that's just a
matter of taste.

Reviewed-by: Thomas Huth <thuth@redhat.com>



  reply	other threads:[~2020-07-03 15:17 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-03 14:56 [PATCH v3 0/9] Build fixes for Haiku Peter Maydell
2020-07-03 14:56 ` [PATCH v3 1/9] build: Enable BSD symbols " Peter Maydell
2020-07-03 14:56 ` [PATCH v3 2/9] util/qemu-openpty.c: Don't assume pty.h is glibc-only Peter Maydell
2020-07-03 15:12   ` Thomas Huth
2020-07-06 14:00     ` Eric Blake
2020-07-06 16:50       ` Thomas Huth
2020-07-03 14:56 ` [PATCH v3 3/9] build: Check that mlockall() exists Peter Maydell
2020-07-03 15:13   ` Thomas Huth
2020-07-03 14:56 ` [PATCH v3 4/9] osdep.h: Always include <sys/signal.h> if it exists Peter Maydell
2020-07-03 15:15   ` Thomas Huth [this message]
2020-07-03 15:21     ` Philippe Mathieu-Daudé
2020-07-03 14:56 ` [PATCH v3 5/9] osdep.h: For Haiku, define SIGIO as equivalent to SIGPOLL Peter Maydell
2020-07-03 15:16   ` Thomas Huth
2020-07-03 14:56 ` [PATCH v3 6/9] bswap.h: Include <endian.h> on Haiku for bswap operations Peter Maydell
2020-07-03 15:19   ` Thomas Huth
2020-07-03 15:22   ` Philippe Mathieu-Daudé
2020-07-03 14:56 ` [PATCH v3 7/9] util/compatfd.c: Only include <sys/syscall.h> if CONFIG_SIGNALFD Peter Maydell
2020-07-03 15:19   ` Thomas Huth
2020-07-03 15:29   ` Philippe Mathieu-Daudé
2020-07-03 14:56 ` [PATCH v3 8/9] util/oslib-posix.c: Implement qemu_init_exec_dir() for Haiku Peter Maydell
2020-07-03 14:56 ` [PATCH v3 9/9] util/drm: make portable by avoiding struct dirent d_type Peter Maydell
2020-07-11 18:44 ` [PATCH v3 0/9] Build fixes for Haiku Peter Maydell
2020-07-11 19:02   ` David CARLIER

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2b801122-1ee2-d62d-a5dc-30f7c770b54d@redhat.com \
    --to=thuth@redhat.com \
    --cc=devnexen@gmail.com \
    --cc=kraxel@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).