diff options
author | Russ Cox <rsc@swtch.com> | 2012-10-20 13:42:39 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2012-10-20 13:42:39 -0400 |
commit | caade784874417027ad575c06740ac5f9119b4bb (patch) | |
tree | 68023099455d4f07b08a9a60f09b715d8179ae19 /src/lib9 | |
parent | 497cd6b40903936f104e1f6a3fafbfdd48fa5247 (diff) | |
download | plan9port-caade784874417027ad575c06740ac5f9119b4bb.tar.gz plan9port-caade784874417027ad575c06740ac5f9119b4bb.tar.bz2 plan9port-caade784874417027ad575c06740ac5f9119b4bb.zip |
lib9: fix Mac warning
R=rsc
http://codereview.appspot.com/6749053
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) { |