From 0f96bfe68b22096b66b422cdfe402af724df7b50 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Sun, 5 May 2019 21:07:50 +0400 Subject: Fix compilation of POSIX runtime on FreeBSD 11. --- runtime/POSIX/fd_32.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/POSIX') diff --git a/runtime/POSIX/fd_32.c b/runtime/POSIX/fd_32.c index 3656971b..434acc9e 100644 --- a/runtime/POSIX/fd_32.c +++ b/runtime/POSIX/fd_32.c @@ -170,7 +170,11 @@ int statfs(const char *path, struct statfs *buf32) { #ifndef __FreeBSD__ ssize_t getdents(int fd, struct dirent *dirp, size_t nbytes) { #else +#if __FreeBSD__ > 11 ssize_t getdents(int fd, char *dirp, size_t nbytes) { +#else +int getdents(int fd, char *dirp, int nbytes) { +#endif #endif struct dirent64 *dp64 = (struct dirent64*) dirp; ssize_t res = __fd_getdents(fd, dp64, nbytes); -- cgit 1.4.1