[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/9] osdep.h: For Haiku, define SIGIO as equivalent to SIG
From: |
Thomas Huth |
Subject: |
Re: [PATCH v3 5/9] osdep.h: For Haiku, define SIGIO as equivalent to SIGPOLL |
Date: |
Fri, 3 Jul 2020 17:16:07 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 03/07/2020 16.56, Peter Maydell wrote:
> From: David CARLIER <devnexen@gmail.com>
>
> Haiku doesn't provide SIGIO; fix this up in osdep.h by defining it as
> equal to SIGPOLL.
>
> 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>
> ---
> include/qemu/osdep.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
> index 6e0cf9132d9..e090ead8262 100644
> --- a/include/qemu/osdep.h
> +++ b/include/qemu/osdep.h
> @@ -425,6 +425,10 @@ void qemu_anon_ram_free(void *ptr, size_t size);
> #define HAVE_CHARDEV_PARPORT 1
> #endif
>
> +#if defined(__HAIKU__)
> +#define SIGIO SIGPOLL
> +#endif
> +
> #if defined(CONFIG_LINUX)
> #ifndef BUS_MCEERR_AR
> #define BUS_MCEERR_AR 4
Sounds reasonable.
Reviewed-by: Thomas Huth <thuth@redhat.com>
- Re: [PATCH v3 2/9] util/qemu-openpty.c: Don't assume pty.h is glibc-only, (continued)
- [PATCH v3 3/9] build: Check that mlockall() exists, Peter Maydell, 2020/07/03
- [PATCH v3 4/9] osdep.h: Always include <sys/signal.h> if it exists, Peter Maydell, 2020/07/03
- [PATCH v3 6/9] bswap.h: Include <endian.h> on Haiku for bswap operations, Peter Maydell, 2020/07/03
- [PATCH v3 5/9] osdep.h: For Haiku, define SIGIO as equivalent to SIGPOLL, Peter Maydell, 2020/07/03
- Re: [PATCH v3 5/9] osdep.h: For Haiku, define SIGIO as equivalent to SIGPOLL,
Thomas Huth <=
- [PATCH v3 7/9] util/compatfd.c: Only include <sys/syscall.h> if CONFIG_SIGNALFD, Peter Maydell, 2020/07/03
- [PATCH v3 8/9] util/oslib-posix.c: Implement qemu_init_exec_dir() for Haiku, Peter Maydell, 2020/07/03
- [PATCH v3 9/9] util/drm: make portable by avoiding struct dirent d_type, Peter Maydell, 2020/07/03
- Re: [PATCH v3 0/9] Build fixes for Haiku, Peter Maydell, 2020/07/11