From fe31f9c646bc26163497f29c3b833c090df0b3f9 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 14 Sep 2009 19:51:23 -0700 Subject: [PATCH] Change xf86dristr.h includes to use xf86driproto.h instead Clears warnings about obsolete headers, but raises minimum required version of xf86driproto to 2.1.0 Signed-off-by: Alan Coopersmith Signed-off-by: Peter Hutterer --- configure.ac | 2 +- glx/glxdri.c | 2 +- hw/kdrive/ephyr/XF86dri.c | 2 +- hw/kdrive/ephyr/ephyrdriext.c | 2 +- hw/xfree86/dri/dri.c | 2 +- hw/xfree86/dri/drimodule.c | 2 +- hw/xfree86/dri/xf86dri.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index fcbeed8fe..f6b91cdcb 100644 --- a/configure.ac +++ b/configure.ac @@ -893,7 +893,7 @@ AC_SUBST([GLX_DEFINES]) AM_CONDITIONAL(DRI, test "x$DRI" = xyes) if test "x$DRI" = xyes; then AC_DEFINE(XF86DRI, 1, [Build DRI extension]) - PKG_CHECK_MODULES([DRIPROTO], [xf86driproto]) + PKG_CHECK_MODULES([DRIPROTO], [xf86driproto >= 2.1.0]) PKG_CHECK_MODULES([DRI], [glproto >= 1.4.1 dri >= 7.1.0]) AC_SUBST(DRIPROTO_CFLAGS) fi diff --git a/glx/glxdri.c b/glx/glxdri.c index c9d226bdf..6122653b0 100644 --- a/glx/glxdri.c +++ b/glx/glxdri.c @@ -43,7 +43,7 @@ #define _XF86DRI_SERVER_ #include #include -#include +#include #include #include #include diff --git a/hw/kdrive/ephyr/XF86dri.c b/hw/kdrive/ephyr/XF86dri.c index e94a7f0f0..08123d35c 100644 --- a/hw/kdrive/ephyr/XF86dri.c +++ b/hw/kdrive/ephyr/XF86dri.c @@ -63,7 +63,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include #include #include "xf86dri.h" -#include +#include static XExtensionInfo _xf86dri_info_data; static XExtensionInfo *xf86dri_info = &_xf86dri_info_data; diff --git a/hw/kdrive/ephyr/ephyrdriext.c b/hw/kdrive/ephyr/ephyrdriext.c index 84885d8f0..323ebefce 100644 --- a/hw/kdrive/ephyr/ephyrdriext.c +++ b/hw/kdrive/ephyr/ephyrdriext.c @@ -38,7 +38,7 @@ #include #define _XF86DRI_SERVER_ #include -#include +#include #include "misc.h" #include "privates.h" #include "dixstruct.h" diff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c index d32b284ed..3d7724d8f 100644 --- a/hw/xfree86/dri/dri.c +++ b/hw/xfree86/dri/dri.c @@ -57,7 +57,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "windowstr.h" #include "servermd.h" #define _XF86DRI_SERVER_ -#include "xf86dristr.h" +#include #include "swaprep.h" #include "xf86str.h" #include "dri.h" diff --git a/hw/xfree86/dri/drimodule.c b/hw/xfree86/dri/drimodule.c index 3aa9245b9..28f6ad8c0 100644 --- a/hw/xfree86/dri/drimodule.c +++ b/hw/xfree86/dri/drimodule.c @@ -60,7 +60,7 @@ static XF86ModuleVersionInfo VersRec = extern void XFree86DRIExtensionInit(INITARGS); #define _XF86DRI_SERVER_ -#include "xf86dristr.h" +#include static ExtensionModule XF86DRIExt = { diff --git a/hw/xfree86/dri/xf86dri.c b/hw/xfree86/dri/xf86dri.c index d3e5e688a..75344b78f 100644 --- a/hw/xfree86/dri/xf86dri.c +++ b/hw/xfree86/dri/xf86dri.c @@ -52,7 +52,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "scrnintstr.h" #include "servermd.h" #define _XF86DRI_SERVER_ -#include "xf86dristr.h" +#include #include "swaprep.h" #include "xf86str.h" #include "dri.h"