Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Make CMSG_NXTHDR a function instead of the alias, since the alias tar…
Browse files Browse the repository at this point in the history
…get is private
  • Loading branch information
todayman committed Nov 21, 2014
1 parent 4458eb2 commit 0a0bf2d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/core/sys/posix/sys/socket.d
Expand Up @@ -192,10 +192,11 @@ version( linux )
extern (D) inout(ubyte)* CMSG_DATA( inout(cmsghdr)* cmsg ) pure nothrow @nogc { return cast(ubyte*)( cmsg + 1 ); }
}

/*private*/ inout(cmsghdr)* __cmsg_nxthdr(inout(msghdr)*, inout(cmsghdr)*) pure nothrow @nogc;
// FIXME the alias is unusable because the target of the alias is private.
// Is this a bug?
alias __cmsg_nxthdr CMSG_NXTHDR;
private inout(cmsghdr)* __cmsg_nxthdr(inout(msghdr)*, inout(cmsghdr)*) pure nothrow @nogc;
extern (D) inout(cmsghdr)* CMSG_NXTHDR(inout(msghdr)* msg, inout(cmsghdr)* cmsg) pure nothrow @nogc
{
return __cmsg_nxthdr(msg, cmsg);
}

extern (D) inout(cmsghdr)* CMSG_FIRSTHDR( inout(msghdr)* mhdr ) pure nothrow @nogc
{
Expand Down

0 comments on commit 0a0bf2d

Please sign in to comment.