Gitweb:
https://git.exim.org/exim.git/commitdiff/b11989b8d73c17ccb70e22ca7e8a13540ecca73d
Commit: b11989b8d73c17ccb70e22ca7e8a13540ecca73d
Parent: 45907b9dd8939da28facc8032ff2df8549c22c7f
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Sun Feb 23 17:08:42 2020 +0000
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Sun Feb 23 17:08:42 2020 +0000
Try to fix Solaris build
---
src/src/daemon.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/src/daemon.c b/src/src/daemon.c
index f39ab01..067bb33 100644
--- a/src/src/daemon.c
+++ b/src/src/daemon.c
@@ -1056,13 +1056,17 @@ daemon_notification(void)
{
uschar buf[256], cbuf[256];
struct sockaddr_un sa_un;
-struct iovec iov = {.iov_base = buf, .iov_len = sizeof(buf)-1};
+struct iovec iov = {.iov_base = (void *)buf, /* ? cast needed for Solaris compiler */
+ .iov_len = sizeof(buf)-1
+ };
struct msghdr msg = { .msg_name = &sa_un,
.msg_namelen = sizeof(sa_un),
.msg_iov = &iov,
.msg_iovlen = 1,
+#if !defined(__sun)
.msg_control = cbuf,
.msg_controllen = sizeof(cbuf)
+#endif
};
ssize_t sz;
struct cmsghdr * cp;