]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
sdl: workaround bug in sdl 2.0.8 headers
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Mar 2018 15:42:57 +0000 (16:42 +0100)
committerGreg Kurz <groug@kaod.org>
Tue, 22 May 2018 10:58:05 +0000 (12:58 +0200)
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892087

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20180307154258.9313-1-kraxel@redhat.com
(cherry picked from commit 2ca5c43091324a68772dc348cdf157c63888c168)
Signed-off-by: Greg Kurz <groug@kaod.org>
configure

index 087a82ac50781331992e0644b490cdf1cbd0a865..3c8e66c75092187b1c31a5979be95d904a9aaf24 100755 (executable)
--- a/configure
+++ b/configure
@@ -2788,6 +2788,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)