summaryrefslogtreecommitdiff
path: root/xserver/Xext/saver.c
diff options
context:
space:
mode:
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>