summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-10-31 11:14:30 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-10-31 11:14:30 -0700
commit8838a27cb7d1c1be42166569ebfd0c75626752aa (patch)
treed9bd3da45cfcddb9e2b82ca137cef9bf3df0f6f1
parentfba7d03bee848b38a4d6a295244cda4c80605ef2 (diff)
include Xxf86dga.h instead of the deprecated xf86dga.h
Requires libXxf86dga 1.1.0 or newer for the new header. Clears compiler warnings of: "X11/extensions/xf86dga.h", line 9: #warning: "xf86dga.h is obsolete and may be removed in the future." "X11/extensions/xf86dga.h", line 10: #warning: "include <X11/extensions/Xxf86dga.h> instead." Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac2
-rw-r--r--dga.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 48ac761..ea0bf92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,6 +39,6 @@ XORG_MACROS_VERSION(1.8)
XORG_DEFAULT_OPTIONS
# Checks for pkg-config packages
-PKG_CHECK_MODULES(XF86DGA, x11 xxf86dga)
+PKG_CHECK_MODULES(XF86DGA, [x11 xxf86dga >= 1.1])
AC_OUTPUT([Makefile])
diff --git a/dga.c b/dga.c
index c460ce7..bef44af 100644
--- a/dga.c
+++ b/dga.c
@@ -2,7 +2,7 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
-#include <X11/extensions/xf86dga.h>
+#include <X11/extensions/Xxf86dga.h>
#include <sys/time.h>
#include <ctype.h>
#include <errno.h>