tnowsys fixes (Lou Kamenov) - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 326a461d0e45e96d6f044b7d6413dda9807742bf
parent 2a951f5eb612939f890c09a5293226b673663043
Author: rsc 
Date:   Fri, 27 Jan 2006 04:04:38 +0000

nowsys fixes (Lou Kamenov)

Diffstat:
  M src/libdraw/nowsys-itrans.c         |      24 ++++++++++++++++++++++--
  M 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
t@@ -1,3 +1,23 @@
-/* so that there's *something* in this file */
-int __nowsys__itrans(void) {return 0;}
+#include 
+#include 
+ 
+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
t@@ -5,6 +5,7 @@
 #include 
 #include 
 
+int _wantfocuschanges;
 static int
 bad(void)
 {