Hi, Simple fix for OpenBSD 5.5 onwards.
bye, sin
>From 375fc88ebb5e934569ea9fcf8ed7c36d972ce252 Mon Sep 17 00:00:00 2001 From: sin <s...@2f30.org> Date: Fri, 13 Dec 2013 16:01:12 +0000 Subject: [PATCH] Use getdents() on OpenBSD instead of getdirentries() In OpenBSD 5.5 getdirentries() was replaced with getdents(). --- lib9/dirread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib9/dirread.c b/lib9/dirread.c index aad4c36..f76a282 100644 --- a/lib9/dirread.c +++ b/lib9/dirread.c @@ -51,8 +51,7 @@ mygetdents(int fd, struct dirent *buf, int n) static int mygetdents(int fd, struct dirent *buf, int n) { - off_t off; - return getdirentries(fd, (void*)buf, n, &off); + return getdents(fd, (void*)buf, n); } #elif defined(__sun__) || defined(__NetBSD__) static int -- 1.8.4.5