summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/wncklet/showdesktop.c4
-rw-r--r--applets/wncklet/wncklet.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c
index 1e682fab..632e2e82 100644
--- a/applets/wncklet/showdesktop.c
+++ b/applets/wncklet/showdesktop.c
@@ -25,6 +25,10 @@
#include <config.h>
#endif
+#ifndef HAVE_X11
+#error file should only be built when HAVE_X11 is enabled
+#endif
+
#include <glib/gi18n.h>
#include <gtk/gtk.h>
diff --git a/applets/wncklet/wncklet.c b/applets/wncklet/wncklet.c
index dafdcb8f..c24b41f0 100644
--- a/applets/wncklet/wncklet.c
+++ b/applets/wncklet/wncklet.c
@@ -25,6 +25,10 @@
#include <config.h>
#endif
+#ifndef HAVE_X11
+#error file should only be built when HAVE_X11 is enabled
+#endif
+
#include <string.h>
#include <mate-panel-applet.h>