diff options
author | Arvindh Rajesh Tamilmani <art@a-30.net> | 2010-04-09 15:28:16 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2010-04-09 15:28:16 -0700 |
commit | 80c90f271e673a036cf208399cfc824e388249c5 (patch) | |
tree | ac44124a2d752aeb79e0b3c3139a532d946652e3 | |
parent | f50c3e956ffbeb15f3d386752805d1baf1c708df (diff) | |
download | plan9port-80c90f271e673a036cf208399cfc824e388249c5.tar.gz plan9port-80c90f271e673a036cf208399cfc824e388249c5.tar.bz2 plan9port-80c90f271e673a036cf208399cfc824e388249c5.zip |
fix build on SunOS (Sparc)
R=rsc
CC=codebot
http://codereview.appspot.com/882044
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rwxr-xr-x | INSTALL | 10 | ||||
-rwxr-xr-x | dist/buildmk | 1 | ||||
-rw-r--r-- | src/cmd/rio/key.c | 1 | ||||
-rw-r--r-- | src/mkhdr | 1 |
5 files changed, 13 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 25d2c87f..8cf47d9c 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -6,6 +6,7 @@ Albert Lee <trisk@acm.jhu.edu> André Günther <Andre.G@gmx.de> Anthony Sorace <a@9srv.net> +Arvindh Rajesh Tamilmani <art@a-30.net> Benjamin Huntsman <BHuntsman@mail2.cu-portland.edu> Enrique Soriano <enrique.soriano@gmail.com> Eoghan Sherry <ejsherry@gmail.com> @@ -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 <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xatom.h> +#include <X11/keysym.h> #include <X11/extensions/shape.h> #include "dat.h" #include "fns.h" @@ -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 |