--- lib9/dirread.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib9/dirread.c b/lib9/dirread.c index 99d5597..f114195 100644 --- a/lib9/dirread.c +++ b/lib9/dirread.c _AT_@ -28,12 +28,21 @@ mygetdents(int fd, struct dirent *buf, int n) return getdirentries(fd, (void*)buf, n, &off); } #elif defined(__OpenBSD__) +#include <sys/param.h> +# if OpenBSD < 201405 /* for OpenBSD 5.4 and earlier */ static int mygetdents(int fd, struct dirent *buf, int n) { off_t off; return getdirentries(fd, (void*)buf, n, &off); } +# else +static int +mygetdents(int fd, struct dirent *buf, int n) +{ + return getdents(fd, (void*)buf, n); +} +# endif #elif defined(__sun__) || defined(__NetBSD__) static int mygetdents(int fd, struct dirent *buf, int n) -- 1.8.5.3 --tThc/1wpZn/ma/RB--Received on Mon Sep 17 2001 - 00:00:00 CEST
This archive was generated by hypermail 2.3.0 : Mon Mar 03 2014 - 21:00:03 CET