summaryrefslogtreecommitdiff
path: root/Tests/X11/X11.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/X11/X11.c')
-rw-r--r--Tests/X11/X11.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/X11/X11.c b/Tests/X11/X11.c
index b877b31882..fae99998b9 100644
--- a/Tests/X11/X11.c
+++ b/Tests/X11/X11.c
@@ -1,3 +1,5 @@
+#ifdef CMAKE_HAS_X
+
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -36,3 +38,11 @@ char **argv;
}
+#else
+
+int main()
+{
+ return 0;
+}
+
+#endif