$OpenBSD: patch-src_lib9_dirread_c,v 1.1 2013/08/22 16:32:22 pascal Exp $
--- src/lib9/dirread.c.orig	Thu Aug 15 22:43:44 2013
+++ src/lib9/dirread.c	Thu Aug 15 22:45:50 2013
@@ -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__)
+#elif defined(__APPLE__) || defined(__FreeBSD__)
 static int
 mygetdents(int fd, struct dirent *buf, int n)
 {
 	long off;
 	return getdirentries(fd, (void*)buf, n, &off);
 }
-#elif defined(__sun__) || defined(__NetBSD__)
+#elif defined(__sun__) || defined(__NetBSD__) || defined(__OpenBSD__)
 static int
 mygetdents(int fd, struct dirent *buf, int n)
 {
