summaryrefslogtreecommitdiff
path: root/mate-panel/xstuff.c
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-01-26 04:56:06 -0500
committerlukefromdc <[email protected]>2019-01-29 19:09:05 +0000
commite3846eb096a7ded4566775bcca0a3e3ceb22f762 (patch)
treed91be8abf9f1c6f3bf148056235387da14adb9c8 /mate-panel/xstuff.c
parent58d9c36f73ab1e331c293d044e38caf43f0c99b1 (diff)
downloadmate-panel-e3846eb096a7ded4566775bcca0a3e3ceb22f762.tar.bz2
mate-panel-e3846eb096a7ded4566775bcca0a3e3ceb22f762.tar.xz
xstuff: Error if X11 not enabled
Diffstat (limited to 'mate-panel/xstuff.c')
-rw-r--r--mate-panel/xstuff.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mate-panel/xstuff.c b/mate-panel/xstuff.c
index 21d58825..199b8620 100644
--- a/mate-panel/xstuff.c
+++ b/mate-panel/xstuff.c
@@ -12,7 +12,13 @@
* Copyright (c) 1997-2002 Alfredo K. Kojima
*/
+
#include <config.h>
+
+#ifndef HAVE_X11
+#error file should only be built when HAVE_X11 is enabled
+#endif
+
#include <string.h>
#include <unistd.h>