From 901729e3e04d13d0d7e701c6a6c014f4adc42ce6 Mon Sep 17 00:00:00 2001 From: runge Date: Tue, 18 Jul 2006 00:40:00 +0000 Subject: x11vnc: enable --without-x builds for -rawfb only binaries. --- x11vnc/cleanup.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'x11vnc/cleanup.c') diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c index 6e6e2cd..c6992fb 100644 --- a/x11vnc/cleanup.c +++ b/x11vnc/cleanup.c @@ -427,10 +427,14 @@ void initialize_signals(void) { signal(SIGPIPE, interrupted); } +#if NO_X11 + return; +#else X_LOCK; Xerror_def = XSetErrorHandler(Xerror); XIOerr_def = XSetIOErrorHandler(XIOerr); X_UNLOCK; +#endif /* NO_X11 */ } void unset_signals(void) { -- cgit v1.2.1