Commit Diff


commit - 9bc519d686f2f3451e07ce5d814b3a85306a414d
commit + b7d8e86a72da7d644b7cf689545a66d15b608cd2
blob - 989f9547ac4c1ddb325231f19585042dde37c22b
blob + 5485df0c2c5eb0a151e0d4ea182d8c25fef3eb09
--- src/lib9/dirread.c
+++ 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)
 {