From 5250625a23b52399e4f386f49d2608aca3dd1afe Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 16 Jan 2015 10:43:52 +0100 Subject: [PATCH] lib/msghdr: add defines for Solaris Add the proper defines for Solaris to expose the required msg_control and msg_controllen struct msghdr members and for sockaddr_storage. The right thing to do would be to add checks to waf that would set up the correct compilation environment on Solaris (that would result in defining _XOPEN_SOURCE=500/600 and __EXTENSISONS__), but unfortunately that breaks other waf configure checks (cups) and the build (heimdal, math functions use goto label ERR which is an existing define in /usr/include/sys/regset.h). Signed-off-by: Ralph Boehme --- source3/lib/msghdr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/lib/msghdr.c b/source3/lib/msghdr.c index 82f7ca7..3ccf898 100644 --- a/source3/lib/msghdr.c +++ b/source3/lib/msghdr.c @@ -16,6 +16,11 @@ * along with this program. If not, see . */ +#ifdef __sun +#define _XPG4_2 /* for msg_control and msg_controllen */ +#define __EXTENSIONS__ /* for struct sockaddr_storage */ +#endif + #include "replace.h" #include "lib/msghdr.h" #include "lib/iov_buf.h" -- 1.9.3