summaryrefslogtreecommitdiff
path: root/xdpyinfo.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-09-21 16:27:55 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-09-21 19:31:15 -0700
commitf9eaeadea17cb96ab85ee6cc0b5aa3867a832bcc (patch)
tree8315d4867d808516f6b7b47a3d142080dbb1fc12 /xdpyinfo.c
parentbd89c302aa44c5a7a6e5f5d6e6f131e04b8e61c1 (diff)
Use xf86vmproto.h instead of xf86vmstr.h if it is installed
Clears warnings when built with xf86vidmodeproto 2.2.99.1 & later Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xdpyinfo.c')
-rw-r--r--xdpyinfo.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/xdpyinfo.c b/xdpyinfo.c
index 1125aa4..21b8412 100644
--- a/xdpyinfo.c
+++ b/xdpyinfo.c
@@ -46,7 +46,8 @@ in this Software without prior written authorization from The Open Group.
# define XKB
# endif
-# if HAVE_X11_EXTENSIONS_XF86VMODE_H && HAVE_X11_EXTENSIONS_XF86VMSTR_H
+# if HAVE_X11_EXTENSIONS_XF86VMODE_H && \
+ (HAVE_X11_EXTENSIONS_XF86VMSTR_H || HAVE_X11_EXTENSIONS_XF86VMPROTO_H)
# define XF86VIDMODE
# endif
@@ -104,7 +105,11 @@ in this Software without prior written authorization from The Open Group.
#endif
#ifdef XF86VIDMODE
#include <X11/extensions/xf86vmode.h>
-#include <X11/extensions/xf86vmstr.h>
+# if HAVE_X11_EXTENSIONS_XF86VMPROTO_H /* xf86vidmodeproto 2.2.99.1 & later */
+# include <X11/extensions/xf86vmproto.h>
+# else
+# include <X11/extensions/xf86vmstr.h>
+# endif
#endif
#ifdef XFreeXDGA
#include <X11/extensions/xf86dga.h>