summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-11-18 08:07:56 -0700
committerBrian Paul <brianp@vmware.com>2009-11-18 08:07:56 -0700
commitd449c07b8bfd1789b4f643b0eb0b1fac5314ebbe (patch)
treedeaac915e34914b327da84afda26706c1edae580 /src
parent2b3ea2be906fbe0bf08f08f23ec39c0feb7a8f39 (diff)
downloadexternal_mesa3d-d449c07b8bfd1789b4f643b0eb0b1fac5314ebbe.zip
external_mesa3d-d449c07b8bfd1789b4f643b0eb0b1fac5314ebbe.tar.gz
external_mesa3d-d449c07b8bfd1789b4f643b0eb0b1fac5314ebbe.tar.bz2
xorg/st: fixup builds against later dpms headers.
(cherry picked from master, commit e9d6ab72be065becf7a077c33919d37faa8db92e)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_crtc.c4
-rw-r--r--src/gallium/state_trackers/xorg/xorg_output.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_crtc.c b/src/gallium/state_trackers/xorg/xorg_crtc.c
index fe08bde..67fe29a 100644
--- a/src/gallium/state_trackers/xorg/xorg_crtc.c
+++ b/src/gallium/state_trackers/xorg/xorg_crtc.c
@@ -42,8 +42,12 @@
#include "xorg_tracker.h"
#include "xf86Modes.h"
+#ifdef HAVE_XEXTPROTO_71
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
+#endif
#include "pipe/p_inlines.h"
#include "util/u_rect.h"
diff --git a/src/gallium/state_trackers/xorg/xorg_output.c b/src/gallium/state_trackers/xorg/xorg_output.c
index 950af94..26f45f8 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"