diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-04-13 19:54:47 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-04-13 19:54:47 +0000 |
commit | adf90efb468836718a65424c703e4363b17e5e39 (patch) | |
tree | b3b53765b85ecf464c153af52327a32e126635f3 /xserver/mi/mieq.c | |
parent | ca12b4fa619e24d52d0feb4dab5d579f82b4b8d7 (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/mi/mieq.c')
-rw-r--r-- | xserver/mi/mieq.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xserver/mi/mieq.c b/xserver/mi/mieq.c index 478e68b7e..8090c257c 100644 --- a/xserver/mi/mieq.c +++ b/xserver/mi/mieq.c @@ -56,7 +56,11 @@ in this Software without prior written authorization from The Open Group. #ifdef DPMSExtension # include "dpmsproc.h" # define DPMS_SERVER -# include <X11/extensions/dpms.h> +#ifndef HAVE_X11_EXTENSIONS_DPMSCONST_H +#include <X11/extensions/dpms.h> +#else +#include <X11/extensions/dpmsconst.h> +#endif #endif #define QUEUE_SIZE 512 |