diff options
author | Russ Cox <rsc@swtch.com> | 2009-07-14 22:55:52 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2009-07-14 22:55:52 -0700 |
commit | e6c837d612cc884aa4fe68335c121c3dadddeebc (patch) | |
tree | 31c741d29c74726558268d17d8df1c3a3848646b /src | |
parent | 76f90e51459082e3dd93f80e310635c6d37044e2 (diff) | |
parent | 76f90e51459082e3dd93f80e310635c6d37044e2 (diff) | |
download | plan9port-e6c837d612cc884aa4fe68335c121c3dadddeebc.tar.gz plan9port-e6c837d612cc884aa4fe68335c121c3dadddeebc.tar.bz2 plan9port-e6c837d612cc884aa4fe68335c121c3dadddeebc.zip |
merge
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/acme/rows.c | 3 | ||||
-rw-r--r-- | src/lib9/dirread.c | 6 | ||||
-rw-r--r-- | src/libdraw/drawclient.c | 8 | ||||
-rw-r--r-- | src/mkhdr | 2 |
4 files changed, 16 insertions, 3 deletions
diff --git a/src/cmd/acme/rows.c b/src/cmd/acme/rows.c index 51f3e1c5..31322f8a 100644 --- a/src/cmd/acme/rows.c +++ b/src/cmd/acme/rows.c @@ -269,6 +269,9 @@ rowtype(Row *row, Rune r, Point p) Window *w; Text *t; + if(r == 0) + r = Runeerror; + clearmouse(); qlock(&row->lk); if(bartflag) diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c index 5485df0c..74dd1422 100644 --- a/src/lib9/dirread.c +++ b/src/lib9/dirread.c @@ -31,6 +31,12 @@ mygetdents(int fd, struct dirent *buf, int n) { return getdents(fd, (void*)buf, n); } +#elif defined(__AIX__) +static int +mygetdents(int fd, struct dirent *buf, int n) +{ + return getdirent(fd, (void*)buf, n); +} #endif static int diff --git a/src/libdraw/drawclient.c b/src/libdraw/drawclient.c index 361cb0ac..f6cc5861 100644 --- a/src/libdraw/drawclient.c +++ b/src/libdraw/drawclient.c @@ -34,6 +34,7 @@ _displayconnect(Display *d) return -1; } if(pid == 0){ + char *devdraw; close(p[0]); dup(p[1], 0); dup(p[1], 1); @@ -54,9 +55,12 @@ _displayconnect(Display *d) * instead. */ putenv("NOLIBTHREADDAEMONIZE", "1"); + devdraw = getenv("DEVDRAW"); + if(devdraw == nil) + devdraw = "devdraw"; if(argv0 == nil) - argv0 = "devdraw"; - execl("devdraw", argv0, argv0, "(devdraw)", nil); + argv0 = devdraw; + execl(devdraw, argv0, argv0, "(devdraw)", nil); sysfatal("exec devdraw: %r"); } close(p[1]); @@ -6,7 +6,7 @@ OBJTYPE=`uname -m | sed ' s;amd64;x86_64;; s;/.*;;; s; ;;g; - s;armv4l;arm;g; + s;armv.*;arm;g; s;PowerMacintosh;power;g; s;macppc;power;g; s;ppc64;power;g; |