From aa4754cf5a232842ff25cdcb34d098bfab9ee861 Mon Sep 17 00:00:00 2001
From: William Wold <wm@wmww.sh>
Date: Sat, 26 Jan 2019 04:05:10 -0500
Subject: wncklet: Error if compiling without X11 support

---
 applets/wncklet/showdesktop.c | 4 ++++
 applets/wncklet/wncklet.c     | 4 ++++
 2 files changed, 8 insertions(+)

(limited to 'applets')

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>
 
-- 
cgit v1.2.1