[PATCH 1/1] configure: Include Xlib.h before Xrandr.h.

Henri Verbeet hverbeet at codeweavers.com
Thu Feb 14 14:16:11 CST 2013


Similar to commit 98c605d6c7e5679d2eb7903c1ee3434ae1775134.
---
 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index d6fccaa..fd7d0b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1076,8 +1076,8 @@ then
                 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
 #include <X11/extensions/Xrandr.h>]], [[static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;]])],
                   [WINE_CHECK_SONAME(Xrandr,XRRQueryExtension,
-                    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/extensions/Xrandr.h>]],
-                        [[static typeof(XRRGetScreenResources) *f; if (f) return 0;]])],
+                    [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>
+#include <X11/extensions/Xrandr.h>]], [[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])])
-- 
1.7.2.5




More information about the wine-patches mailing list