summaryrefslogtreecommitdiff
path: root/Tests/X11
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-29 15:58:35 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-29 15:58:35 -0500
commitea2001e6e5c6c9386335e829cfa67ab9083f3a40 (patch)
tree410126ff892ad83420aa25db2516212fc8249d1e /Tests/X11
parenta43958f4f0f3797e9eb76cb9b93d3bf5b4d2fab2 (diff)
downloadcmake-ea2001e6e5c6c9386335e829cfa67ab9083f3a40.tar.gz
Print message on system without X11
Diffstat (limited to 'Tests/X11')
-rw-r--r--Tests/X11/X11.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/X11/X11.c b/Tests/X11/X11.c
index fae99998b9..ed5d491889 100644
--- a/Tests/X11/X11.c
+++ b/Tests/X11/X11.c
@@ -30,7 +30,8 @@ char **argv;
mywindow=XCreateSimpleWindow(mydisplay,
DefaultRootWindow(mydisplay),
- myhint.x, myhint.y, myhint.width, myhint.height, 5,
+ myhint.x, myhint.y, myhint.width,
+ myhint.height, 5,
myforeground, mybackground );
XDestroyWindow(mydisplay, mywindow);
XCloseDisplay(mydisplay);
@@ -40,8 +41,11 @@ char **argv;
#else
+#include "stdio.h"
+
int main()
{
+ printf("No X on this computer\n");
return 0;
}