summaryrefslogtreecommitdiffstats
path: root/x11vnc/x11vnc.h
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/x11vnc.h')
-rw-r--r--x11vnc/x11vnc.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/x11vnc/x11vnc.h b/x11vnc/x11vnc.h
index 0c48245..09c14a8 100644
--- a/x11vnc/x11vnc.h
+++ b/x11vnc/x11vnc.h
@@ -26,18 +26,31 @@
#include <time.h>
#include <errno.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <ctype.h>
+
+#include <rfb/rfb.h>
+#include <rfb/rfbregion.h>
+
+
+/* we can now build under --without-x: */
+#if LIBVNCSERVER_HAVE_X11
+
+#define NO_X11 0
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <X11/Xatom.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <ctype.h>
+#else
-#include <rfb/rfb.h>
-#include <rfb/rfbregion.h>
+#define NO_X11 1
+#include "nox11.h"
+#include <rfb/keysym.h>
+
+#endif
/****************************************************************************/
@@ -497,6 +510,8 @@ typedef struct _ClientData {
} ClientData;
+extern void nox11_exit(int rc);
+
#include "params.h"
#include "enums.h"
#include "options.h"
OpenPOWER on IntegriCloud