tUse getdents instead of getdirentries under NetBSD. - 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 b7d8e86a72da7d644b7cf689545a66d15b608cd2
 (DIR) parent 9bc519d686f2f3451e07ce5d814b3a85306a414d
 (HTM) Author: wkj <devnull@localhost>
       Date:   Mon, 26 Jun 2006 18:08:17 +0000
       
       Use getdents instead of getdirentries under NetBSD.
       
       Diffstat:
         M src/lib9/dirread.c                  |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c
       t@@ -18,14 +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__) || defined(__NetBSD__)
       +#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
        static int
        mygetdents(int fd, struct dirent *buf, int n)
        {
                long off;
                return getdirentries(fd, (void*)buf, n, &off);
        }
       -#elif defined(__sun__)
       +#elif defined(__sun__) || defined(__NetBSD__)
        static int
        mygetdents(int fd, struct dirent *buf, int n)
        {