commit b7d8e86a72da7d644b7cf689545a66d15b608cd2
parent 9bc519d686f2f3451e07ce5d814b3a85306a414d
Author: wkj <devnull@localhost>
Date: Mon, 26 Jun 2006 18:08:17 +0000
Use getdents instead of getdirentries under NetBSD.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c
@@ -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)
{