diff mbox series

sdl: workaround bug in sdl 2.0.8 headers

Message ID 20180307154258.9313-1-kraxel@redhat.com
State New
Headers show
Series sdl: workaround bug in sdl 2.0.8 headers | expand

Commit Message

Gerd Hoffmann March 7, 2018, 3:42 p.m. UTC
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892087

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

Comments

Daniel P. Berrangé March 7, 2018, 3:55 p.m. UTC | #1
On Wed, Mar 07, 2018 at 04:42:57PM +0100, Gerd Hoffmann wrote:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892087
> 
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
>  configure | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


> 
> diff --git a/configure b/configure
> index 6f3921c02a..86240f97ac 100755
> --- a/configure
> +++ b/configure
> @@ -2874,6 +2874,7 @@ if test "$sdl" != "no" ; then
>  int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
>  EOF
>    sdl_cflags=$($sdlconfig --cflags 2>/dev/null)
> +  sdl_cflags="$sdl_cflags -Wno-undef"  # workaround 2.0.8 bug
>    if test "$static" = "yes" ; then
>      if $pkg_config $sdlname --exists; then
>        sdl_libs=$($pkg_config $sdlname --static --libs 2>/dev/null)
> -- 
> 2.9.3
> 
> 

Regards,
Daniel
diff mbox series

Patch

diff --git a/configure b/configure
index 6f3921c02a..86240f97ac 100755
--- a/configure
+++ b/configure
@@ -2874,6 +2874,7 @@  if test "$sdl" != "no" ; then
 int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
 EOF
   sdl_cflags=$($sdlconfig --cflags 2>/dev/null)
+  sdl_cflags="$sdl_cflags -Wno-undef"  # workaround 2.0.8 bug
   if test "$static" = "yes" ; then
     if $pkg_config $sdlname --exists; then
       sdl_libs=$($pkg_config $sdlname --static --libs 2>/dev/null)