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

Commit

Permalink
Add CMSG_SPACE for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
todayman committed Nov 21, 2014
1 parent 47ffda6 commit 4458eb2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/sys/posix/sys/socket.d
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ version( linux )
}
}

extern (D) size_t CMSG_SPACE(size_t len) pure nothrow @nogc
{
return CMSG_ALIGN(len) + CMSG_ALIGN(cmsghdr.sizeof);
}

struct linger
{
int l_onoff;
Expand Down

0 comments on commit 4458eb2

Please sign in to comment.