summaryrefslogtreecommitdiffstats
path: root/Tests/X11/X11.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/X11/X11.c')
-rw-r--r--Tests/X11/X11.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/Tests/X11/X11.c b/Tests/X11/X11.c
index 7804352..b802ed8 100644
--- a/Tests/X11/X11.c
+++ b/Tests/X11/X11.c
@@ -1,33 +1,17 @@
+#include "stdio.h"
#ifdef CMAKE_HAS_X
#include <X11/Xlib.h>
#include <X11/Xutil.h>
-#include <stdlib.h>
int main()
{
- Display *mydisplay;
- char* display = ":0";
-
-
- if ( getenv("DISPLAY") )
- {
- display = getenv("DISPLAY");
- }
-
- mydisplay=XOpenDisplay(display);
- if ( mydisplay )
- {
- XCloseDisplay(mydisplay);
- }
+ printf("There is X on this computer\n");
return 0;
}
-
#else
-#include "stdio.h"
-
int main()
{
printf("No X on this computer\n");