summaryrefslogtreecommitdiff
path: root/xserver/Xext/dpms.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/Xext/dpms.c')
-rw-r--r--xserver/Xext/dpms.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xserver/Xext/dpms.c b/xserver/Xext/dpms.c
index d3e0dde8b..7a21d3661 100644
--- a/xserver/Xext/dpms.c
+++ b/xserver/Xext/dpms.c
@@ -44,9 +44,13 @@ Equipment Corporation.
#include "dixstruct.h"
#include "extnsionst.h"
#include "opaque.h"
+#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
+#include <X11/extensions/dpmsproto.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
#include <X11/extensions/dpmsstr.h>
+#endif
#include "dpmsproc.h"
#include "modinit.h"