Use getdents instead of getdirentries under NetBSD.

This commit is contained in:
wkj 2006-06-26 18:08:17 +00:00
parent 9bc519d686
commit b7d8e86a72

View file

@ -18,14 +18,14 @@ mygetdents(int fd, struct dirent *buf, int n)
nn = getdirentries(fd, (void*)buf, n, &off); nn = getdirentries(fd, (void*)buf, n, &off);
return nn; return nn;
} }
#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) #elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
static int static int
mygetdents(int fd, struct dirent *buf, int n) mygetdents(int fd, struct dirent *buf, int n)
{ {
long off; long off;
return getdirentries(fd, (void*)buf, n, &off); return getdirentries(fd, (void*)buf, n, &off);
} }
#elif defined(__sun__) #elif defined(__sun__) || defined(__NetBSD__)
static int static int
mygetdents(int fd, struct dirent *buf, int n) mygetdents(int fd, struct dirent *buf, int n)
{ {