Skip to content

Commit aa4754c

Browse files
wmwwraveit65
authored andcommitted
wncklet: Error if compiling without X11 support
1 parent d7edd93 commit aa4754c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

applets/wncklet/showdesktop.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#include <config.h>
2626
#endif
2727

28+
#ifndef HAVE_X11
29+
#error file should only be built when HAVE_X11 is enabled
30+
#endif
31+
2832
#include <glib/gi18n.h>
2933

3034
#include <gtk/gtk.h>

applets/wncklet/wncklet.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#include <config.h>
2626
#endif
2727

28+
#ifndef HAVE_X11
29+
#error file should only be built when HAVE_X11 is enabled
30+
#endif
31+
2832
#include <string.h>
2933
#include <mate-panel-applet.h>
3034

0 commit comments

Comments
 (0)