summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/notification_area/system-tray/fixedtip.c6
-rw-r--r--applets/notification_area/system-tray/na-tray.h6
2 files changed, 10 insertions, 2 deletions
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 <config.h>
+
+#ifndef HAVE_X11
+#error file should only be compiled when HAVE_X11 is enabled
+#endif
+
#include <gdk/gdkx.h>
#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 <config.h>
-#ifdef HAVE_X11
-#include <gdk/gdkx.h>
+#ifndef HAVE_X11
+#error file should only be included when HAVE_X11 is enabled
#endif
+
+#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#include "na-host.h"