diff options
author | Brad King <brad.king@kitware.com> | 2021-11-17 11:40:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-17 11:40:02 (GMT) |
commit | 74a05716a453d1cffbba4a1b300c7cafea17b8f5 (patch) | |
tree | a8b1b793607796938219d94a57ba4ce2924e3c8f /Utilities/cmlibuv/src/unix/freebsd.c | |
parent | 65fb29fdfbe1663fe0f050214c43bf24238fbbfe (diff) | |
parent | 27e34e6190ba1014c20ef5e8ffa7d653595ced12 (diff) | |
download | CMake-74a05716a453d1cffbba4a1b300c7cafea17b8f5.zip CMake-74a05716a453d1cffbba4a1b300c7cafea17b8f5.tar.gz CMake-74a05716a453d1cffbba4a1b300c7cafea17b8f5.tar.bz2 |
Merge branch 'upstream-libuv' into update-libuv
* upstream-libuv:
libuv 2021-11-09 (0f696da5)
Diffstat (limited to 'Utilities/cmlibuv/src/unix/freebsd.c')
-rw-r--r-- | Utilities/cmlibuv/src/unix/freebsd.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Utilities/cmlibuv/src/unix/freebsd.c b/Utilities/cmlibuv/src/unix/freebsd.c index fe795a0..170b897 100644 --- a/Utilities/cmlibuv/src/unix/freebsd.c +++ b/Utilities/cmlibuv/src/unix/freebsd.c @@ -265,8 +265,11 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { int uv__sendmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) { -#if __FreeBSD__ >= 11 - return sendmmsg(fd, mmsg, vlen, /* flags */ 0); +#if __FreeBSD__ >= 11 && !defined(__DragonFly__) + return sendmmsg(fd, + (struct mmsghdr*) mmsg, + vlen, + 0 /* flags */); #else return errno = ENOSYS, -1; #endif @@ -274,8 +277,12 @@ int uv__sendmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) { int uv__recvmmsg(int fd, struct uv__mmsghdr* mmsg, unsigned int vlen) { -#if __FreeBSD__ >= 11 - return recvmmsg(fd, mmsg, vlen, 0 /* flags */, NULL /* timeout */); +#if __FreeBSD__ >= 11 && !defined(__DragonFly__) + return recvmmsg(fd, + (struct mmsghdr*) mmsg, + vlen, + 0 /* flags */, + NULL /* timeout */); #else return errno = ENOSYS, -1; #endif |