From c6731024cad9d1cddcfe681e634705023171c8a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Calixte?= Date: Wed, 9 May 2018 23:25:09 +0200 Subject: [PATCH] wayland: include X11 libraries only if it is an available GDK backend --- gtk/src/gtk_config.cpp | 2 ++ gtk/src/gtk_display.cpp | 2 ++ gtk/src/gtk_preferences.cpp | 2 ++ gtk/src/gtk_s9x.cpp | 2 ++ gtk/src/gtk_s9xwindow.cpp | 2 ++ 5 files changed, 10 insertions(+) diff --git a/gtk/src/gtk_config.cpp b/gtk/src/gtk_config.cpp index 9c0ca4c1..069a36a6 100644 --- a/gtk/src/gtk_config.cpp +++ b/gtk/src/gtk_config.cpp @@ -5,7 +5,9 @@ #include #include #include +#ifdef GDK_WINDOWING_X11 #include +#endif #include #include #include diff --git a/gtk/src/gtk_display.cpp b/gtk/src/gtk_display.cpp index 97511ddd..84168959 100644 --- a/gtk/src/gtk_display.cpp +++ b/gtk/src/gtk_display.cpp @@ -1,5 +1,7 @@ #include +#ifdef GDK_WINDOWING_X11 #include +#endif #include #include "gtk_s9x.h" diff --git a/gtk/src/gtk_preferences.cpp b/gtk/src/gtk_preferences.cpp index 3534f57d..67b47474 100644 --- a/gtk/src/gtk_preferences.cpp +++ b/gtk/src/gtk_preferences.cpp @@ -1,7 +1,9 @@ #include #include #include +#ifdef GDK_WINDOWING_X11 #include +#endif #include "gtk_preferences.h" #include "gtk_config.h" diff --git a/gtk/src/gtk_s9x.cpp b/gtk/src/gtk_s9x.cpp index 42794dcd..7c1a9622 100644 --- a/gtk/src/gtk_s9x.cpp +++ b/gtk/src/gtk_s9x.cpp @@ -2,7 +2,9 @@ #include #include #include +#ifdef GDK_WINDOWING_X11 #include +#endif #include "gtk_s9x.h" #include "gtk_control.h" diff --git a/gtk/src/gtk_s9xwindow.cpp b/gtk/src/gtk_s9xwindow.cpp index eda007b9..0073fe53 100644 --- a/gtk/src/gtk_s9xwindow.cpp +++ b/gtk/src/gtk_s9xwindow.cpp @@ -1,5 +1,7 @@ #include +#ifdef GDK_WINDOWING_X11 #include +#endif #include #include #include