diff options
author | rsc <devnull@localhost> | 2006-07-23 02:08:25 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-07-23 02:08:25 +0000 |
commit | 1cba594e516aff09e61ec710a8c609385b11b165 (patch) | |
tree | c2f066ea4e3afe04ea5a979b12131c28ba7ae324 | |
parent | 0360e1f12f07b47acb82c94fa369edfa222629b4 (diff) | |
download | plan9port-1cba594e516aff09e61ec710a8c609385b11b165.tar.gz plan9port-1cba594e516aff09e61ec710a8c609385b11b165.tar.bz2 plan9port-1cba594e516aff09e61ec710a8c609385b11b165.zip |
fix nowsys build
-rw-r--r-- | src/cmd/snarfer/mkfile | 8 | ||||
-rw-r--r-- | src/cmd/snarfer/nowsys-snarfer.c | 9 | ||||
-rw-r--r-- | src/cmd/snarfer/x11-snarfer.c | 1 |
3 files changed, 15 insertions, 3 deletions
diff --git a/src/cmd/snarfer/mkfile b/src/cmd/snarfer/mkfile index aca345c5..e48f3a4f 100644 --- a/src/cmd/snarfer/mkfile +++ b/src/cmd/snarfer/mkfile @@ -1,9 +1,11 @@ <$PLAN9/src/mkhdr +<|sh ../devdraw/mkwsysrules.sh + TARG=snarfer -OFILES= +OFILES=$WSYSTYPE-snarfer.$O HFILES= -<|sh ../devdraw/mkwsysrules.sh -<$PLAN9/src/mkmany +<$PLAN9/src/mkone +x11-snarfer.$O: snarfer.c diff --git a/src/cmd/snarfer/nowsys-snarfer.c b/src/cmd/snarfer/nowsys-snarfer.c new file mode 100644 index 00000000..06e59d84 --- /dev/null +++ b/src/cmd/snarfer/nowsys-snarfer.c @@ -0,0 +1,9 @@ +#include <u.h> +#include <libc.h> + +void +main(void) +{ + fprint(2, "no window system\n"); + exits("nowsys"); +} diff --git a/src/cmd/snarfer/x11-snarfer.c b/src/cmd/snarfer/x11-snarfer.c new file mode 100644 index 00000000..613a8cc5 --- /dev/null +++ b/src/cmd/snarfer/x11-snarfer.c @@ -0,0 +1 @@ +#include "snarfer.c" |