summaryrefslogtreecommitdiff
path: root/src/apm_driver.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-07-16 11:26:14 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-16 11:26:14 +1000
commit09347dfc78b7f291313057863976bf4b679362d1 (patch)
treec3f2ff3634be864c77a5efe2af917e8f422c2601 /src/apm_driver.c
parentf985346aef9c15eaa1669ab8317e5e470eb143dc (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/apm_driver.c')
-rw-r--r--src/apm_driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/apm_driver.c b/src/apm_driver.c
index 98c02d1..f9420a3 100644
--- a/src/apm_driver.c
+++ b/src/apm_driver.c
@@ -12,8 +12,13 @@
#include "vbe.h"
#include "opaque.h"
+#ifdef HAVE_XEXTPROTO_71
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
+#endif
+
#define APM_VERSION 4000
#define APM_NAME "APM"