From b852dfa8c677f1a95cee98d1350d99c6bb28f50c Mon Sep 17 00:00:00 2001 From: William Wold Date: Mon, 17 Jun 2019 22:15:47 +0000 Subject: Make system-tray X11-only --- applets/notification_area/system-tray/fixedtip.c | 6 ++++++ applets/notification_area/system-tray/na-tray.h | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'applets/notification_area') diff --git a/applets/notification_area/system-tray/fixedtip.c b/applets/notification_area/system-tray/fixedtip.c index f5817cdd..f7b28d7b 100644 --- a/applets/notification_area/system-tray/fixedtip.c +++ b/applets/notification_area/system-tray/fixedtip.c @@ -20,6 +20,12 @@ * 02110-1301, USA. */ +#include + +#ifndef HAVE_X11 +#error file should only be compiled when HAVE_X11 is enabled +#endif + #include #include "fixedtip.h" diff --git a/applets/notification_area/system-tray/na-tray.h b/applets/notification_area/system-tray/na-tray.h index 9f9d2bef..74e242c7 100644 --- a/applets/notification_area/system-tray/na-tray.h +++ b/applets/notification_area/system-tray/na-tray.h @@ -26,9 +26,11 @@ #include -#ifdef HAVE_X11 -#include +#ifndef HAVE_X11 +#error file should only be included when HAVE_X11 is enabled #endif + +#include #include #include "na-host.h" -- cgit v1.2.1