summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-07-16 11:58:18 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-16 11:58:18 +1000
commit083e15c44cc722aae7b6d02fc4856a3f2d0f5153 (patch)
tree62aea80aff7d14e89aadd424b8a8a63145e7d5b4 /src
parent47c98d939a8c9dd28b3310c3f1093cb5f89b62d0 (diff)
Update to xextproto 7.1 support.HEADmaster
DPMS header was split into dpms.h (client) and dpmsconst.h (server). Drivers need to include dpmsconst.h if xextproto 7.1 is available. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/vermilion.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vermilion.c b/src/vermilion.c
index 6686b59..03f77b6 100644
--- a/src/vermilion.c
+++ b/src/vermilion.c
@@ -59,8 +59,13 @@
#include "xf86cmap.h"
/* DPMS */
+#ifdef HAVE_XEXTPROTO_71
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
+#endif
+
#include "xf86Priv.h"
#define KERNELNAME "Vermilion Range"