plan9port

[fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port # fast
git clone https://src.adamsgaard.dk/plan9port.git # slow
Log | Files | Refs | README | LICENSE Back to index

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:
Msrc/lib9/dirread.c | 4++--
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) {