summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2010-05-15 20:10:59 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2010-05-15 20:10:59 +0000
commit3133a25f03e99afbc2ef1792989fb75f739456e9 (patch)
tree081afdecd3ec79a2e7fbb48997149b69f8c3c158 /driver
parentb6280b451fe07b1d8f3f3991ab5f15c95771e9d6 (diff)
Make it possible to build driver with the newer proto headers; from matthieu@
Diffstat (limited to 'driver')
-rw-r--r--driver/xf86-video-sunffb/src/ffb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/xf86-video-sunffb/src/ffb.h b/driver/xf86-video-sunffb/src/ffb.h
index ea1b7fc98..b8d0bc936 100644
--- a/driver/xf86-video-sunffb/src/ffb.h
+++ b/driver/xf86-video-sunffb/src/ffb.h
@@ -39,10 +39,14 @@
#include "ffb_regs.h"
#include "xf86sbusBus.h"
#include "ffb_dac.h"
+#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
+#include <X11/extensions/dpmsconst.h>
+#else
#ifndef DPMS_SERVER
#define DPMS_SERVER
#endif /* DPMS_SERVER */
#include <X11/extensions/dpms.h>
+#endif
/* Various offsets in virtual (ie. mmap()) spaces Linux and Solaris support. */