summaryrefslogtreecommitdiff
path: root/src/atombios_crtc.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-09-11 09:19:17 +1000
committerDave Airlie <airlied@redhat.com>2009-09-11 09:19:17 +1000
commit93df2faf1ea2008248566326f10ed737e7f6fc66 (patch)
tree6fb81603d01271287ffecba11a10ad14b375e7a8 /src/atombios_crtc.c
parent9589d19eb8cbf7b1a978c7ea3eaacb328fb48cd8 (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> Conflicts: src/drmmode_display.c
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 f060d8d7..cd98c215 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"