lib9: fix Mac warning

R=rsc
http://codereview.appspot.com/6749053
This commit is contained in:
Russ Cox 2012-10-20 13:42:39 -04:00
parent 497cd6b409
commit caade78487

View file

@ -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)
{