aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-07-23 02:08:25 +0000
committerrsc <devnull@localhost>2006-07-23 02:08:25 +0000
commit1cba594e516aff09e61ec710a8c609385b11b165 (patch)
treec2f066ea4e3afe04ea5a979b12131c28ba7ae324
parent0360e1f12f07b47acb82c94fa369edfa222629b4 (diff)
downloadplan9port-1cba594e516aff09e61ec710a8c609385b11b165.tar.gz
plan9port-1cba594e516aff09e61ec710a8c609385b11b165.tar.bz2
plan9port-1cba594e516aff09e61ec710a8c609385b11b165.zip
fix nowsys build
-rw-r--r--src/cmd/snarfer/mkfile8
-rw-r--r--src/cmd/snarfer/nowsys-snarfer.c9
-rw-r--r--src/cmd/snarfer/x11-snarfer.c1
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"