summaryrefslogtreecommitdiff
path: root/src/atombios_crtc.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/atombios_crtc.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/atombios_crtc.c')
-rw-r--r--src/atombios_crtc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/atombios_crtc.c b/src/atombios_crtc.c
index 6d24c2b1..e04b3c41 100644
--- a/src/atombios_crtc.c
+++ b/src/atombios_crtc.c
@@ -33,8 +33,13 @@
#include "config.h"
#endif
/* DPMS */
+#ifdef HAVE_XEXTPROTO_71
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
+#endif
+
#include "radeon.h"
#include "radeon_reg.h"