nowsys fixes (Lou Kamenov)
diff --git a/src/libdraw/nowsys-itrans.c b/src/libdraw/nowsys-itrans.c index 117e162..8c60c6b 100644 --- a/src/libdraw/nowsys-itrans.c +++ b/src/libdraw/nowsys-itrans.c
@@ -1,3 +1,23 @@ -/* so that there's *something* in this file */ -int __nowsys__itrans(void) {return 0;} +#include <u.h> +#include <libc.h> + +static int +bad(void) +{ + sysfatal("compiled with no window system support"); + return 0; +} +void +putsnarf(char *data) +{ + USED(data); + bad(); +} + +char* +getsnarf(void) +{ + bad(); + return nil; +}
diff --git a/src/libdraw/nowsys-mouse.c b/src/libdraw/nowsys-mouse.c index bf55007..af1bf99 100644 --- a/src/libdraw/nowsys-mouse.c +++ b/src/libdraw/nowsys-mouse.c
@@ -5,6 +5,7 @@ #include <cursor.h> #include <mouse.h> +int _wantfocuschanges; static int bad(void) {