summaryrefslogtreecommitdiff
path: root/applets/wncklet
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-01-26 04:05:10 -0500
committerraveit65 <[email protected]>2019-01-29 15:20:59 +0100
commitaa4754cf5a232842ff25cdcb34d098bfab9ee861 (patch)
tree79eca08ca6650ac2d620281497c580aef39a1adf /applets/wncklet
parentd7edd93f04f56bcf60e31096593cd60653726fe0 (diff)
downloadmate-panel-aa4754cf5a232842ff25cdcb34d098bfab9ee861.tar.bz2
mate-panel-aa4754cf5a232842ff25cdcb34d098bfab9ee861.tar.xz
wncklet: Error if compiling without X11 support
Diffstat (limited to 'applets/wncklet')
-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>