tdevdraw: default to native gui on OS X - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 0a40aeedbfc4713f4d8f20031e00a494c647bc9e
parent 8315a8045cd2c8433a9bbec6f2a93669ddc93501
Author: Russ Cox 
Date:   Wed,  9 Jul 2008 11:47:44 -0400

devdraw: default to native gui on OS X

Diffstat:
  M src/cmd/devdraw/mkwsysrules.sh      |       4 +++-

1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/cmd/devdraw/mkwsysrules.sh b/src/cmd/devdraw/mkwsysrules.sh
t@@ -21,7 +21,9 @@ if [ "x$X11" = "x" ]; then
 fi
 
 if [ "x$WSYSTYPE" = "x" ]; then
-        if [ -d "$X11" ]; then
+        if [ "x`uname`" = "xDarwin" ]; then
+                WSYSTYPE=osx
+        elif [ -d "$X11" ]; then
                 WSYSTYPE=x11
         else
                 WSYSTYPE=nowsys