1 2 3 4 5 6 7 8 9
#include <X11/Xlib.h> int main(int, char **) { Display *d = XOpenDisplay(NULL); XCloseDisplay(d); return 0; }