summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/xorg/xorg_output.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-09-21 13:26:48 +1000
committerDave Airlie <airlied@redhat.com>2009-09-21 13:26:48 +1000
commite9d6ab72be065becf7a077c33919d37faa8db92e (patch)
treea5ec8ee46f321e26cec58e18f9f287ae89b3115b /src/gallium/state_trackers/xorg/xorg_output.c
parent1a9eec84bd363409b884fbf468dbec6ca595b593 (diff)
xorg/st: fixup builds against later dpms headers.
Diffstat (limited to 'src/gallium/state_trackers/xorg/xorg_output.c')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_output.c b/src/gallium/state_trackers/xorg/xorg_output.c
index 950af942f5..26f45f8d64 100644
--- a/src/gallium/state_trackers/xorg/xorg_output.c
+++ b/src/gallium/state_trackers/xorg/xorg_output.c
@@ -42,8 +42,12 @@
#include <sys/stat.h>
#include <sys/types.h>
+#ifdef HAVE_XEXTPROTO_71
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
+#endif
#include "X11/Xatom.h"