From 80c90f271e673a036cf208399cfc824e388249c5 Mon Sep 17 00:00:00 2001 From: Arvindh Rajesh Tamilmani Date: Fri, 9 Apr 2010 15:28:16 -0700 Subject: fix build on SunOS (Sparc) R=rsc CC=codebot http://codereview.appspot.com/882044 --- CONTRIBUTORS | 1 + INSTALL | 10 +++++++++- dist/buildmk | 1 + src/cmd/rio/key.c | 1 + src/mkhdr | 1 + 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 25d2c87f..8cf47d9c 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -6,6 +6,7 @@ Albert Lee André Günther Anthony Sorace +Arvindh Rajesh Tamilmani Benjamin Huntsman Enrique Soriano Eoghan Sherry diff --git a/INSTALL b/INSTALL index cd908443..4a175d8d 100755 --- a/INSTALL +++ b/INSTALL @@ -21,6 +21,14 @@ esac PLAN9=`pwd` export PLAN9 PATH=/bin:/usr/bin:$PLAN9/bin:$PATH export PATH +case `uname` in +SunOS) + awk=nawk + ;; +*) + awk=awk + ;; +esac echo "+ Mailing list: http://groups.google.com/group/plan9port-dev" echo "+ Issue tracker: http://code.swtch.com/plan9port/issues/" @@ -123,5 +131,5 @@ if $doinstall; then echo " PLAN9=$PLAN9 export PLAN9" echo ' PATH=$PATH:$PLAN9/bin export PATH' fi -) 2>&1 | tee install.log | awk -f $PLAN9/dist/isum.awk -v 'copy='install.sum +) 2>&1 | tee install.log | $awk -f $PLAN9/dist/isum.awk -v 'copy='install.sum diff --git a/dist/buildmk b/dist/buildmk index 3f26d0af..ff2f0b67 100755 --- a/dist/buildmk +++ b/dist/buildmk @@ -14,5 +14,6 @@ OBJTYPE=`uname -m -p | sed ' s;.*ppc64.*;power;g; s;.*ppc.*;power;g; s;.*alpha.*;alpha;g; + s;.*sun4u.*;sun4u;g; '` export OBJTYPE sh -x mkmk.sh diff --git a/src/cmd/rio/key.c b/src/cmd/rio/key.c index 12cc53ea..5bac1735 100644 --- a/src/cmd/rio/key.c +++ b/src/cmd/rio/key.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include "dat.h" #include "fns.h" diff --git a/src/mkhdr b/src/mkhdr index 6eed94d9..053ffea2 100644 --- a/src/mkhdr +++ b/src/mkhdr @@ -12,6 +12,7 @@ OBJTYPE=`uname -m -p | sed ' s;.*ppc64.*;power;g; s;.*ppc.*;power;g; s;.*alpha.*;alpha;g; + s;.*sun4u.*;sun4u;g; '` BIN=$PLAN9/bin -- cgit v1.2.3