Fwd: CMSG_LEN, CMSG_SPACE not there on illumos
gordon.w.ross at gmail.com
Wed Apr 29 10:07:40 MDT 2015
Nevermind about CMSG_LEN, CMSG_SPACE being missing.
They're right there in sys/socket.h but only exposed if XPG4v2 or later,
so Samba needs to use -D_XOPEN_SOURCE=600
I took a stab a changing that, and ran into the "fun" of waf in
I'll send my attempt at fixing this later...
On Tue, Apr 28, 2015 at 11:48 AM, Jeremy Allison <jra at samba.org> wrote:
> On Tue, Apr 28, 2015 at 10:41:15AM -0400, Gordon Ross wrote:
>> In some previous email on this list, Jeremy posted some Solaris
>> patches that introduced an #ifdef HAVE_STRUCT_MSGHDR_MSG_CONTROL to
>> deal with this in source3/lib/unix_msg.c.
>> If I go the "add another #ifdef" route, what's the appropriate thing to do here?
>> I looked the the unix_msg.c changes and it seems that the
>> #ifdef HAVE_STRUCT_MSGHDR_MSG_CONTROL just omits all the code related
>> to FD passing. Does that work? Is that not needed?
>> If it helps, illumos _does_ support FD passing via control messages,
>> just not these CMSG_LEN, CMSG_SPACE macros etc.
>> Any help and advice appreciated.
> Can you point me at the man pages for Solaris/Illumos that
> show how it's doing the same thing ?
More information about the samba-technical