The Samba-Bugzilla – Attachment 10623 Details for
Bug 11053
source3/lib/msghdr.c compiling error on Solaris
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
lib/msghdr: add defines for Solaris
msghdr_solaris.patch (text/plain), 1.26 KB, created by
Ralph Böhme
on 2015-01-16 10:03:06 UTC
(
hide
)
Description:
lib/msghdr: add defines for Solaris
Filename:
MIME Type:
Creator:
Ralph Böhme
Created:
2015-01-16 10:03:06 UTC
Size:
1.26 KB
patch
obsolete
>From 5250625a23b52399e4f386f49d2608aca3dd1afe Mon Sep 17 00:00:00 2001 >From: Ralph Boehme <rb@sernet.de> >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 <rb@sernet.de> >--- > 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 <http://www.gnu.org/licenses/>. > */ > >+#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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11053
: 10623 |
11457
|
11476