nowsys fixes (Lou Kamenov)

This commit is contained in:
rsc 2006-01-27 04:04:38 +00:00
parent 2a951f5eb6
commit 326a461d0e
2 changed files with 23 additions and 2 deletions

View file

@ -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;
}

View file

@ -5,6 +5,7 @@
#include <cursor.h>
#include <mouse.h>
int _wantfocuschanges;
static int
bad(void)
{