summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-07-16 11:33:57 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-16 11:33:57 +1000
commit7e6557b81026d8a4d6c837839e68c28b151f8a97 (patch)
treef41aced5585a03a4a8bbda860f2fd9d8f98d3442 /src/drmmode_display.c
parent95d431e8b260dd43cf6d93b90eecab1dc0ec7c26 (diff)
Update to xextproto 7.1 support.
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/drmmode_display.c')
-rw-r--r--src/drmmode_display.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index b5846df1..ea2f71f4 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -41,8 +41,13 @@
#include "drmmode_display.h"
/* DPMS */
+#ifdef HAVE_XEXTPROTO_71
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
+#endif
+
static void
drmmode_ConvertFromKMode(ScrnInfoPtr scrn,