diff options
author | Christian Hergert <christian@hergert.me> | 2015-09-04 14:06:22 -0700 |
---|---|---|
committer | Ignacio Casal Quinteiro <icq@gnome.org> | 2015-09-22 12:46:02 +0200 |
commit | 5bb9c1891ced2699bfc9d92acd8adf7b6167de26 (patch) | |
tree | fb3fdf3716446a86dac7d1e8248a3d51b0728672 | |
parent | f7e0deb7cb22870846ebd9f37085163fc9499bce (diff) | |
download | gtk+-5bb9c1891ced2699bfc9d92acd8adf7b6167de26.tar.gz |
build: only compile plug/socket when available
Plug and Socket require X11 windowing. Often times this is compiled
on systems with both wayland and x11, but not always. Quartz is an
example where it is usually not compiled.
-rw-r--r-- | testsuite/gtk/notify.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c index 91492cc1eb..505c066a04 100644 --- a/testsuite/gtk/notify.c +++ b/testsuite/gtk/notify.c @@ -417,11 +417,10 @@ test_type (gconstpointer data) /* Backend-specific */ #ifdef GDK_WINDOWING_X11 if (GDK_IS_X11_DISPLAY (gdk_display_get_default ())) ; - else -#endif - if (g_type_is_a (type, GTK_TYPE_PLUG) || - g_type_is_a (type, GTK_TYPE_SOCKET)) + else if (g_type_is_a (type, GTK_TYPE_PLUG) || + g_type_is_a (type, GTK_TYPE_SOCKET)) return; +#endif #ifdef GDK_WINDOWING_WAYLAND if (GDK_IS_WAYLAND_DISPLAY (gdk_display_get_default ())) |