tlib9: fix Mac warning - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit caade784874417027ad575c06740ac5f9119b4bb
 (DIR) parent 497cd6b40903936f104e1f6a3fafbfdd48fa5247
 (HTM) 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:
         M src/lib9/dirread.c                  |       9 ++++++++-
       
       1 file changed, 8 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c
       t@@ -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)
        {