aboutsummaryrefslogtreecommitdiffstats
path: root/method-x-vidmode.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-05 19:18:09 +0100
committerMattias Andrée <maandree@kth.se>2021-03-05 19:18:09 +0100
commit5879cf0c50cecded79224b5207be9a83c204ccad (patch)
tree248c8b03d86b1679cfdb42b4f274839a8f981272 /method-x-vidmode.h
parentUpdate todo (diff)
downloadlibgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.gz
libgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.bz2
libgamma-5879cf0c50cecded79224b5207be9a83c204ccad.tar.xz
Fix support for fake methods
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'method-x-vidmode.h')
-rw-r--r--method-x-vidmode.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/method-x-vidmode.h b/method-x-vidmode.h
index 3612ff1..8370e86 100644
--- a/method-x-vidmode.h
+++ b/method-x-vidmode.h
@@ -1,7 +1,9 @@
/* See LICENSE file for copyright and license details. */
-#include <X11/Xlib.h>
-#include <X11/extensions/xf86vmode.h>
+#ifdef IN_LIBGAMMA_X_VIDMODE
+# include <X11/Xlib.h>
+# include <X11/extensions/xf86vmode.h>
+#endif
/**