1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-14 11:49:53 +03:00
aports/testing/9base/dirread.patch
Joshua Haase d7536614fd testing/9base: new abuild
The port for s390x is as recommended on https://plan9port-review.googlesource.com/1030

Closes !299
2019-10-08 19:51:09 +00:00

17 lines
448 B
Diff

--- 9base-6/lib9/dirread.c
+++ 9base-6/lib9/dirread.c
@@ -10,13 +10,7 @@
static int
mygetdents(int fd, struct dirent *buf, int n)
{
- off_t off;
- int nn;
-
- /* This doesn't match the man page, but it works in Debian with a 2.2 kernel */
- off = p9seek(fd, 0, 1);
- nn = getdirentries(fd, (void*)buf, n, &off);
- return nn;
+ return getdents(fd, buf, n);
}
#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
static int