diff options
author | wkj <devnull@localhost> | 2006-06-26 18:08:17 +0000 |
---|---|---|
committer | wkj <devnull@localhost> | 2006-06-26 18:08:17 +0000 |
commit | b7d8e86a72da7d644b7cf689545a66d15b608cd2 (patch) | |
tree | d04edf16bfb8ba722e598f9a57e77028103cfe12 /src/lib9 | |
parent | 9bc519d686f2f3451e07ce5d814b3a85306a414d (diff) | |
download | plan9port-b7d8e86a72da7d644b7cf689545a66d15b608cd2.tar.gz plan9port-b7d8e86a72da7d644b7cf689545a66d15b608cd2.tar.bz2 plan9port-b7d8e86a72da7d644b7cf689545a66d15b608cd2.zip |
Use getdents instead of getdirentries under NetBSD.
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/dirread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c index 989f9547..5485df0c 100644 --- 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) { |