diff -Npur spacenavd-0.5.old/src/event.c spacenavd-0.5/src/event.c --- src/event.c 2012-03-21 22:15:37.093401293 +0100 +++ src/event.c 2012-03-21 22:14:10.734401301 +0100 @@ -20,7 +20,9 @@ along with this program. If not, see #include "event.h" #include "client.h" +#ifdef USE_X11 #include "proto_x11.h" +#endif #include "proto_unix.h" #include "spnavd.h"