summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index b5846df1..ea2f71f4 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -41,8 +41,13 @@
#include "drmmode_display.h"
/* DPMS */
+#ifdef HAVE_XEXTPROTO_71
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
+#endif
+
static void
drmmode_ConvertFromKMode(ScrnInfoPtr scrn,