plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit caade784874417027ad575c06740ac5f9119b4bb
parent 497cd6b40903936f104e1f6a3fafbfdd48fa5247
Author: Russ Cox <rsc@swtch.com>
Date:   Sat, 20 Oct 2012 13:42:39 -0400

lib9: fix Mac warning

R=rsc
http://codereview.appspot.com/6749053

Diffstat:
Msrc/lib9/dirread.c | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c @@ -18,7 +18,14 @@ 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__) +static int +mygetdents(int fd, struct dirent *buf, int n) +{ + long off; + return getdirentries(fd, (void*)buf, n, &off); +} +#elif defined(__FreeBSD__) || defined(__OpenBSD__) static int mygetdents(int fd, struct dirent *buf, int n) {