9base

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

commit 629f22258ad7db15ecccd9e38baa6456a5153e9e
parent 3ba816cd672688bda5c8657e3499e734c28f24c3
Author: anselm@garbe.us <unknown>
Date:   Sun, 12 Feb 2012 23:13:17 +0100

applied Juliens 9base fixes on OBSD
Diffstat:
Mlib9/dirread.c | 9++++++++-
Mrc/havefork.c | 3+--
Mrc/haventfork.c | 3+--
3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/lib9/dirread.c b/lib9/dirread.c @@ -18,13 +18,20 @@ mygetdents(int fd, struct dirent *buf, int n) nn = getdirentries(fd, (void*)buf, n, &off); return nn; } -#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) +#elif defined(__APPLE__) || defined(__FreeBSD__) static int mygetdents(int fd, struct dirent *buf, int n) { long off; return getdirentries(fd, (void*)buf, n, &off); } +#elif defined(__OpenBSD__) +static int +mygetdents(int fd, struct dirent *buf, int n) +{ + off_t off; + return getdirentries(fd, (void*)buf, n, &off); +} #elif defined(__sun__) || defined(__NetBSD__) static int mygetdents(int fd, struct dirent *buf, int n) diff --git a/rc/havefork.c b/rc/havefork.c @@ -239,4 +239,4 @@ execforkexec(void) } addwaitpid(pid); return pid; -}- \ No newline at end of file +} diff --git a/rc/haventfork.c b/rc/haventfork.c @@ -227,4 +227,4 @@ execforkexec(void) } free(argv); return -1; -}- \ No newline at end of file +}