summaryrefslogtreecommitdiff
path: root/src/g80_driver.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-07-16 11:49:24 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-16 11:49:24 +1000
commit957b8c1a240884b26ee5b91856c251622cc0b2a7 (patch)
treef5cc504dddec789f26e9ba228d08b3694abe03eb /src/g80_driver.c
parente8d4dd85de02c689d3e0cc86a99aae6e61a7d17e (diff)
Update to xextproto 7.1 support.
DPMS header was split into dpms.h (client) and dpmsconst.h (server). Drivers need to include dpmsconst.h if xextproto 7.1 is available. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/g80_driver.c')
-rw-r--r--src/g80_driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/g80_driver.c b/src/g80_driver.c
index 5ecf895..7e06358 100644
--- a/src/g80_driver.c
+++ b/src/g80_driver.c
@@ -36,8 +36,13 @@
#include <micmap.h>
#include <xf86cmap.h>
#include <fb.h>
+#ifdef HAVE_XEXTPROTO_71
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
+#endif
+
#include "nv_const.h"
#include "g80_type.h"