aboutsummaryrefslogtreecommitdiffstats
path: root/testing/9base/dirread.patch
diff options
context:
space:
mode:
authorJoshua Haase <hahj87@gmail.com>2019-10-05 23:26:27 -0500
committerKevin Daudt <kdaudt@alpinelinux.org>2019-10-08 19:51:09 +0000
commitd7536614fdd311855aca0f568bdaee6730770155 (patch)
tree93a8821b08504d471f6479805cf5d85b82f37def /testing/9base/dirread.patch
parentead7994005b44be3b9e8b1a0c6cd10c11fe555b1 (diff)
downloadaports-d7536614fdd311855aca0f568bdaee6730770155.tar.bz2
aports-d7536614fdd311855aca0f568bdaee6730770155.tar.xz
testing/9base: new abuild
The port for s390x is as recommended on https://plan9port-review.googlesource.com/1030 Closes !299
Diffstat (limited to 'testing/9base/dirread.patch')
-rw-r--r--testing/9base/dirread.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/9base/dirread.patch b/testing/9base/dirread.patch
new file mode 100644
index 0000000000..daf60c6311
--- /dev/null
+++ b/testing/9base/dirread.patch
@@ -0,0 +1,17 @@
+--- 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