summaryrefslogtreecommitdiff
path: root/xserver/Xext/saver.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-04-13 19:54:47 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-04-13 19:54:47 +0000
commitadf90efb468836718a65424c703e4363b17e5e39 (patch)
treeb3b53765b85ecf464c153af52327a32e126635f3 /xserver/Xext/saver.c
parentca12b4fa619e24d52d0feb4dab5d579f82b4b8d7 (diff)
Add a configure test for newer proto headers and use it to enable
building xserver 1.6 with those headers. ok oga@.
Diffstat (limited to 'xserver/Xext/saver.c')
-rw-r--r--xserver/Xext/saver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xserver/Xext/saver.c b/xserver/Xext/saver.c
index 86db7b0b9..5ae7a33aa 100644
--- a/xserver/Xext/saver.c
+++ b/xserver/Xext/saver.c
@@ -54,9 +54,13 @@ in this Software without prior written authorization from the X Consortium.
#include "panoramiXsrv.h"
#endif
#ifdef DPMSExtension
+#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
#endif
+#endif
#include <stdio.h>