summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-03-16 23:23:18 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-03-30 20:31:13 -0700
commit19989884334aa9b8be1b1389320e59f7927acc2f (patch)
treecac9ccb2a915cfb6f95783990c8cb0ad5117aa5f /include
parent043078947a576c7e4ab7ae67998302eff5c5d593 (diff)
Allow building without xcb for testing on older systems
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include')
-rw-r--r--include/xhiv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/xhiv.h b/include/xhiv.h
index b644e09..709afa0 100644
--- a/include/xhiv.h
+++ b/include/xhiv.h
@@ -56,9 +56,11 @@ extern char *XhivOpenServer(xhiv_response *responses, pid_t *return_pid);
extern Display *XhivOpenDisplay(xhiv_response *responses);
extern int XhivCloseDisplay(Display *dpy);
+#ifdef HAVE_XCB
/* Open an xcb display connection to a new Xhiv server */
#include <xcb/xcb.h>
extern xcb_connection_t *xhiv_connect(xhiv_response *responses);
extern int xhiv_disconnect(xcb_connection_t *conn);
+#endif
#endif /* XHIV_H */