| Date: Sat, 27 Apr 2013 21:07:51 +0200
applied David Galos musl compile patch, thanks
Diffstat:
M lib9/_p9dir.c | 2 +-
M lib9/dirread.c | 6 ++++++
M lib9/libc.h | 1 +
M lib9/readcons.c | 4 +++-
4 files changed, 11 insertions(+), 2 deletions(-)
--- |
| @@ -61,7 +61,7 @@ disksize(int fd, struct stat *st)
return (vlong)lab.d_partitions[n].p_size * lab.d_secsize;
}
-#elif defined(__linux__)
+#elif defined(__linux__) && !defined(__MUSL__)
#include
#include
#include |
| @@ -21,6 +21,12 @@ static int
mygetdents(int fd, struct dirent *buf, int n) {
return syscall (getdents, fd, (void*) buf, n);
}
+# elif defined(__MUSL__)
+static int
+mygetdents(int fd, struct dirent *buf, int n)
+{
+ return getdents(fd, (void*)buf, n);
+}
# else
static int
mygetdents(int fd, struct dirent *buf, int n) |