Skip to content

Commit

Permalink
Prevent Mesa from including X11 headers if X11 is disabled
Browse files Browse the repository at this point in the history
This fixes compilation errors that occur when trying to compile SDL2 for
a X11-less target. The errors were due to the fact that Mesa will
include X11 headers unless a couple of macros are defined.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
  • Loading branch information
pcercuei committed Mar 2, 2020
1 parent 3b3ae4d commit 11b63fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Expand Up @@ -2035,6 +2035,9 @@ AS_HELP_STRING([--enable-video-x11-vm], [use X11 VM extension for fullscreen [[d
SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
fi
fi
else
# Prevent Mesa from including X11 headers
EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
fi
}

Expand Down

0 comments on commit 11b63fa

Please sign in to comment.