diff options
author | rsc <devnull@localhost> | 2006-01-27 04:04:38 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-01-27 04:04:38 +0000 |
commit | 326a461d0e45e96d6f044b7d6413dda9807742bf (patch) | |
tree | f39ca947ff56a4bc9b92cc140adbdb2480c1d5cc /src/libdraw | |
parent | 2a951f5eb612939f890c09a5293226b673663043 (diff) | |
download | plan9port-326a461d0e45e96d6f044b7d6413dda9807742bf.tar.gz plan9port-326a461d0e45e96d6f044b7d6413dda9807742bf.tar.bz2 plan9port-326a461d0e45e96d6f044b7d6413dda9807742bf.zip |
nowsys fixes (Lou Kamenov)
Diffstat (limited to 'src/libdraw')
-rw-r--r-- | src/libdraw/nowsys-itrans.c | 24 | ||||
-rw-r--r-- | src/libdraw/nowsys-mouse.c | 1 |
2 files changed, 23 insertions, 2 deletions
diff --git a/src/libdraw/nowsys-itrans.c b/src/libdraw/nowsys-itrans.c index 117e1627..8c60c6bf 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 bf550079..af1bf990 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) { |