9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

commit a3b65ffcdcc4450db02e999e89d126201852813f
parent 5abaddc5f0212bf8d035638327cb0b30ee8cb843
Author: anselm@garbe.us <unknown>
Date:   Mon, 19 Jul 2010 07:49:13 +0100

applied Sebastian Liem's OpenBSD patch, thanks!
Diffstat:
ed/ed.c | 6+++---
lib9/_p9dir.c | 1+
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/ed/ed.c b/ed/ed.c @@ -121,7 +121,7 @@ void setnoaddr(void); void setwide(void); void squeeze(int); void substitute(int); -char* _mktemp(char *as); +char* __mktemp(char *as); Rune La[] = { 'a', 0 }; Rune Lr[] = { 'r', 0 }; @@ -162,7 +162,7 @@ main(int argc, char *argv[]) globp = Lr; } zero = malloc((nlall+5)*sizeof(int*)); - tfname = _mktemp(tmp); + tfname = __mktemp(tmp); init(); setjmp(savej); commands(); @@ -1584,7 +1584,7 @@ putchr(int ac) } char* -_mktemp(char *as) +__mktemp(char *as) { char *s; unsigned pid; diff --git a/lib9/_p9dir.c b/lib9/_p9dir.c @@ -44,6 +44,7 @@ disksize(int fd, struct stat *st) #define _HAVESTGEN #include <sys/disklabel.h> #include <sys/ioctl.h> +#include <sys/dkio.h> static vlong disksize(int fd, struct stat *st) {