From 7389d01f348bc0ed80cfe4e2f861cea9baf70cd6 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Fri, 9 Oct 2009 09:09:56 +0000 Subject: [PATCH] fixed broken --disable-x11 build git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@94 ef983eb1-d774-4af8-acfd-baaf7b16a646 --- src/proto_x11.c | 5 +++++ src/spnavd.c | 2 ++ src/xdetect_linux.c | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/src/proto_x11.c b/src/proto_x11.c index 94d1fc5..27308a1 100644 --- a/src/proto_x11.c +++ b/src/proto_x11.c @@ -17,6 +17,8 @@ along with this program. If not, see . */ #include "config.h" + +#ifdef USE_X11 #include #include #include "proto_x11.h" @@ -313,3 +315,6 @@ static int catch_badwin(Display *dpy, XErrorEvent *err) return 0; } +#else +int spacenavd_proto_x11_shut_up_empty_source_warning; +#endif /* USE_X11 */ diff --git a/src/spnavd.c b/src/spnavd.c index 793bddd..7a987b6 100644 --- a/src/spnavd.c +++ b/src/spnavd.c @@ -28,7 +28,9 @@ along with this program. If not, see . #include "dev.h" #include "client.h" #include "proto_unix.h" +#ifdef USE_X11 #include "proto_x11.h" +#endif static void cleanup(void); static void daemonize(void); diff --git a/src/xdetect_linux.c b/src/xdetect_linux.c index c190fa4..3c6fa10 100644 --- a/src/xdetect_linux.c +++ b/src/xdetect_linux.c @@ -17,6 +17,8 @@ along with this program. If not, see . */ #include "config.h" + +#ifdef USE_X11 #include #include #include @@ -145,3 +147,7 @@ int handle_xdet_events(fd_set *rset) return -1; } + +#else +int spacenavd_xdetect_linux_shut_up_empty_source_warning; +#endif /* USE_X11 */