From: Stefan Weil <sw@weilnetz.de>
To: "Richard W.M. Jones" <rjones@redhat.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, samuel.thibault@gnu.org
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] backends/baum.c: Fix compilation when SDL is not available.
Date: Fri, 21 Mar 2014 22:52:11 +0100 [thread overview]
Message-ID: <532CB48B.6070404@weilnetz.de> (raw)
In-Reply-To: <1395437377-5779-1-git-send-email-rjones@redhat.com>
Am 21.03.2014 22:29, schrieb Richard W.M. Jones:
> backends/baum.c: In function ‘chr_baum_init’:
> backends/baum.c:569:64: error: missing binary operator before token "("
> #if defined(CONFIG_SDL) && SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
> ^
> backends/baum.c:598:64: error: missing binary operator before token "("
> #if defined(CONFIG_SDL) && SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
>
> Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
> ---
> backends/baum.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/backends/baum.c b/backends/baum.c
> index 665107f..759003f 100644
> --- a/backends/baum.c
> +++ b/backends/baum.c
> @@ -566,9 +566,11 @@ CharDriverState *chr_baum_init(void)
> BaumDriverState *baum;
> CharDriverState *chr;
> brlapi_handle_t *handle;
> -#if defined(CONFIG_SDL) && SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
> +#if defined(CONFIG_SDL)
> +#if SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
> SDL_SysWMinfo info;
> #endif
> +#endif
> int tty;
>
> baum = g_malloc0(sizeof(BaumDriverState));
> @@ -595,13 +597,15 @@ CharDriverState *chr_baum_init(void)
> goto fail;
> }
>
> -#if defined(CONFIG_SDL) && SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
> +#if defined(CONFIG_SDL)
> +#if SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
> memset(&info, 0, sizeof(info));
> SDL_VERSION(&info.version);
> if (SDL_GetWMInfo(&info))
> tty = info.info.x11.wmwindow;
> else
> #endif
> +#endif
> tty = BRLAPI_TTY_DEFAULT;
>
> if (brlapi__enterTtyMode(handle, tty, NULL) == -1) {
>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
WARNING: multiple messages have this Message-ID (diff)
From: Stefan Weil <sw@weilnetz.de>
To: "Richard W.M. Jones" <rjones@redhat.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, samuel.thibault@gnu.org
Subject: Re: [Qemu-devel] [PATCH] backends/baum.c: Fix compilation when SDL is not available.
Date: Fri, 21 Mar 2014 22:52:11 +0100 [thread overview]
Message-ID: <532CB48B.6070404@weilnetz.de> (raw)
In-Reply-To: <1395437377-5779-1-git-send-email-rjones@redhat.com>
Am 21.03.2014 22:29, schrieb Richard W.M. Jones:
> backends/baum.c: In function ‘chr_baum_init’:
> backends/baum.c:569:64: error: missing binary operator before token "("
> #if defined(CONFIG_SDL) && SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
> ^
> backends/baum.c:598:64: error: missing binary operator before token "("
> #if defined(CONFIG_SDL) && SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
>
> Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
> ---
> backends/baum.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/backends/baum.c b/backends/baum.c
> index 665107f..759003f 100644
> --- a/backends/baum.c
> +++ b/backends/baum.c
> @@ -566,9 +566,11 @@ CharDriverState *chr_baum_init(void)
> BaumDriverState *baum;
> CharDriverState *chr;
> brlapi_handle_t *handle;
> -#if defined(CONFIG_SDL) && SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
> +#if defined(CONFIG_SDL)
> +#if SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
> SDL_SysWMinfo info;
> #endif
> +#endif
> int tty;
>
> baum = g_malloc0(sizeof(BaumDriverState));
> @@ -595,13 +597,15 @@ CharDriverState *chr_baum_init(void)
> goto fail;
> }
>
> -#if defined(CONFIG_SDL) && SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
> +#if defined(CONFIG_SDL)
> +#if SDL_COMPILEDVERSION < SDL_VERSIONNUM(2, 0, 0)
> memset(&info, 0, sizeof(info));
> SDL_VERSION(&info.version);
> if (SDL_GetWMInfo(&info))
> tty = info.info.x11.wmwindow;
> else
> #endif
> +#endif
> tty = BRLAPI_TTY_DEFAULT;
>
> if (brlapi__enterTtyMode(handle, tty, NULL) == -1) {
>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
next prev parent reply other threads:[~2014-03-21 21:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-21 21:29 [Qemu-trivial] [PATCH] backends/baum.c: Fix compilation when SDL is not available Richard W.M. Jones
2014-03-21 21:29 ` [Qemu-devel] " Richard W.M. Jones
2014-03-21 21:52 ` Stefan Weil [this message]
2014-03-21 21:52 ` Stefan Weil
2014-03-24 18:49 ` [Qemu-trivial] " Peter Maydell
2014-03-24 18:49 ` Peter Maydell
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=532CB48B.6070404@weilnetz.de \
--to=sw@weilnetz.de \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=rjones@redhat.com \
--cc=samuel.thibault@gnu.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 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.