aboutsummaryrefslogtreecommitdiff
path: root/lib/libnv
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2018-12-14 21:16:04 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2018-12-14 21:16:04 +0000
commit032f0fbbb657405ac6312f7493a95bed7d5cf87a (patch)
tree7f0b21c8d77c1a67e01c6d152ac2724dc05a5403 /lib/libnv
parent3ec68206f57e141d64197dae87aee03ef495f8b6 (diff)
Notes
Diffstat (limited to 'lib/libnv')
-rw-r--r--lib/libnv/msgio.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libnv/msgio.c b/lib/libnv/msgio.c
index 938bca81b0ac..da3ef8d20506 100644
--- a/lib/libnv/msgio.c
+++ b/lib/libnv/msgio.c
@@ -157,6 +157,14 @@ msg_send(int sock, const struct msghdr *msg)
return (0);
}
+/*
+ * MacOS/Linux do not define struct cmsgcred but we need to bootstrap libnv
+ * when building on non-FreeBSD systems. Since they are not used during
+ * bootstrap we can just omit these two functions there.
+ */
+#ifndef __FreeBSD__
+#warning "cred_send() not supported on non-FreeBSD systems"
+#else
int
cred_send(int sock)
{
@@ -232,6 +240,7 @@ cred_recv(int sock, struct cmsgcred *cred)
return (0);
}
+#endif
static int
fd_package_send(int sock, const int *fds, size_t nfds)