summaryrefslogtreecommitdiff
path: root/driver/xf86-video-ati/src/atombios_crtc.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-04-13 19:56:39 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-04-13 19:56:39 +0000
commitd4c0bd6741860a563f9cdd8280b2d8948ffd3270 (patch)
tree01436391bdad3678da81d92a343b2d207bfe7d97 /driver/xf86-video-ati/src/atombios_crtc.c
parentadf90efb468836718a65424c703e4363b17e5e39 (diff)
Make it possible to build drivers with the newer proto headers. ok oga@.
Diffstat (limited to 'driver/xf86-video-ati/src/atombios_crtc.c')
-rw-r--r--driver/xf86-video-ati/src/atombios_crtc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/xf86-video-ati/src/atombios_crtc.c b/driver/xf86-video-ati/src/atombios_crtc.c
index 31c032baf..9bc1ad2f0 100644
--- a/driver/xf86-video-ati/src/atombios_crtc.c
+++ b/driver/xf86-video-ati/src/atombios_crtc.c
@@ -33,8 +33,12 @@
#include "config.h"
#endif
/* DPMS */
+#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
+#endif
#include "radeon.h"
#include "radeon_reg.h"