summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin-Éric Racine <martin-eric.racine@iki.fi>2014-02-08 13:27:11 +0200
committerMartin-Éric Racine <martin-eric.racine@iki.fi>2014-02-08 13:27:11 +0200
commit9707a7a5eac25536a5150fc12d9ace52420b4d36 (patch)
treee69fd36eece190592f9dd2b6cc16cc6ec227bcd0
parentc2d956a1e9bba7fa7877544f8e036ae78faa441f (diff)
Added conditional include to fix FTBFS on xserver 1.15 and up.
Thanks to Maarten Lankhorst for the fix.
-rw-r--r--src/geode_dcon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/geode_dcon.c b/src/geode_dcon.c
index 5580c96..c2b9c53 100644
--- a/src/geode_dcon.c
+++ b/src/geode_dcon.c
@@ -29,6 +29,9 @@
/* Includes that are used by all drivers */
#include <xf86.h>
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,15,0,0,0)
+#include <xf86Modes.h>
+#endif
#include <xf86_OSproc.h>
#include <compiler.h>