summaryrefslogtreecommitdiff
path: root/driver/xf86-video-intel/src/ch7017
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-intel/src/ch7017
parentadf90efb468836718a65424c703e4363b17e5e39 (diff)
Make it possible to build drivers with the newer proto headers. ok oga@.
Diffstat (limited to 'driver/xf86-video-intel/src/ch7017')
-rw-r--r--driver/xf86-video-intel/src/ch7017/ch7017.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/xf86-video-intel/src/ch7017/ch7017.c b/driver/xf86-video-intel/src/ch7017/ch7017.c
index 759fc24b0..d3b37d44b 100644
--- a/driver/xf86-video-intel/src/ch7017/ch7017.c
+++ b/driver/xf86-video-intel/src/ch7017/ch7017.c
@@ -39,8 +39,12 @@
#include "miscstruct.h"
#include "xf86i2c.h"
#include "xf86Crtc.h"
+#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
+#endif
#include "../i2c_vid.h"
#include "ch7017_reg.h"