diff options
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/dirread.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c index 30a9065a..0e38db3e 100644 --- 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) { |