From 2860591b686df4ce24a1fc10793db983ce40a789 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 26 Sep 2011 09:27:55 -0700 Subject: [PATCH] use cocoa on snow leopard R=rsc http://codereview.appspot.com/5146043 --- src/cmd/devdraw/mkwsysrules.sh | 2 +- src/cmd/snarfer/osx-cocoa-snarfer.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 src/cmd/snarfer/osx-cocoa-snarfer.c diff --git a/src/cmd/devdraw/mkwsysrules.sh b/src/cmd/devdraw/mkwsysrules.sh index 4e587164..83bfe3be 100644 --- a/src/cmd/devdraw/mkwsysrules.sh +++ b/src/cmd/devdraw/mkwsysrules.sh @@ -22,7 +22,7 @@ fi if [ "x$WSYSTYPE" = "x" ]; then if [ "x`uname`" = "xDarwin" ]; then - if sw_vers | grep 'ProductVersion: 10\.[0-6]\.' >/dev/null; then + if sw_vers | grep 'ProductVersion: 10\.[0-5]\.' >/dev/null; then WSYSTYPE=osx else echo 1>&2 'WARNING: OS X Lion is not working. Copy binaries from a Snow Leopard system.' diff --git a/src/cmd/snarfer/osx-cocoa-snarfer.c b/src/cmd/snarfer/osx-cocoa-snarfer.c new file mode 100644 index 00000000..20f5b6ad --- /dev/null +++ b/src/cmd/snarfer/osx-cocoa-snarfer.c @@ -0,0 +1,2 @@ +#include "snarfer.c" +