| Date: Sun, 12 Feb 2012 23:13:17 +0100
applied Juliens 9base fixes on OBSD
Diffstat:
M lib9/dirread.c | 9 ++++++++-
M rc/havefork.c | 3 +--
M rc/haventfork.c | 3 +--
3 files changed, 10 insertions(+), 5 deletions(-)
--- |
| @@ -18,13 +18,20 @@ 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(__OpenBSD__)
+static int
+mygetdents(int fd, struct dirent *buf, int n)
+{
+ off_t off;
+ return getdirentries(fd, (void*)buf, n, &off);
+}
#elif defined(__sun__) || defined(__NetBSD__)
static int
mygetdents(int fd, struct dirent *buf, int n) |