summaryrefslogtreecommitdiff
path: root/xserver/hw/xfree86/common/xf86Init.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/hw/xfree86/common/xf86Init.c')
-rw-r--r--xserver/hw/xfree86/common/xf86Init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xserver/hw/xfree86/common/xf86Init.c b/xserver/hw/xfree86/common/xf86Init.c
index b4efa4278..ae1960e0f 100644
--- a/xserver/hw/xfree86/common/xf86Init.c
+++ b/xserver/hw/xfree86/common/xf86Init.c
@@ -83,10 +83,14 @@
#include "globals.h"
#ifdef DPMSExtension
+#ifdef HAVE_X11_EXTENSIONS_DPMSCONST_H
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
#include "dpmsproc.h"
#endif
+#endif
#include <pciaccess.h>
#include "Pci.h"