[PATCH] Use getdents() on OpenBSD instead of getdirentries()

From: sin <sin_AT_2f30.org>
Date: Fri, 13 Dec 2013 16:01:12 +0000

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
_AT_@ -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
--Q68bSM7Ycu6FN28Q--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Fri Dec 13 2013 - 17:12:06 CET