From e89edd60fefafd6440b155b49d43b06b7d7b778f Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 14 Feb 2013 21:16:11 +0100 Subject: [PATCH] configure: Include Xlib.h before Xrandr.h. --- configure | 1 + configure.ac | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 2998c6a5115..223ec5dd8d7 100755 --- a/configure +++ b/configure @@ -8824,6 +8824,7 @@ _ACEOF cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include #include int main () diff --git a/configure.ac b/configure.ac index d6fccaab2de..fd7d0b7d7be 100644 --- a/configure.ac +++ b/configure.ac @@ -1076,8 +1076,8 @@ then AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include #include ]], [[static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;]])], [WINE_CHECK_SONAME(Xrandr,XRRQueryExtension, - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], - [[static typeof(XRRGetScreenResources) *f; if (f) return 0;]])], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include +#include ]], [[static typeof(XRRGetScreenResources) *f; if (f) return 0;]])], [AC_DEFINE(HAVE_XRRGETSCREENRESOURCES, 1, [Define if Xrandr has the XRRGetScreenResources function])])],, [$X_LIBS $XLIB $X_EXTRA_LIBS])])