diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-01 18:31:59 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-01 18:31:59 -0600 |
commit | a855c926fe865911611a82eedaebaf0f780f2bbd (patch) | |
tree | fe8e0201ce10c26acdea9f4c0253c6a0996a8a10 | |
parent | c9f8eb168eaecd267e86bafc598a0c1155304b90 (diff) | |
download | gcompat-a855c926fe865911611a82eedaebaf0f780f2bbd.tar.gz gcompat-a855c926fe865911611a82eedaebaf0f780f2bbd.tar.bz2 gcompat-a855c926fe865911611a82eedaebaf0f780f2bbd.tar.xz gcompat-a855c926fe865911611a82eedaebaf0f780f2bbd.zip |
socket: add __cmsg_nxthdr
-rw-r--r-- | CHANGELOG.rst | 6 | ||||
-rw-r--r-- | libgcompat/socket.c | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a35657e..7d23a3c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -25,6 +25,12 @@ malloc * Add __sbrk. +socket +------ + +* Add __cmsg_nxthdr. + + sysctl ------ diff --git a/libgcompat/socket.c b/libgcompat/socket.c index 927ebe4..971a6ba 100644 --- a/libgcompat/socket.c +++ b/libgcompat/socket.c @@ -3,6 +3,16 @@ #include <sys/socket.h> /* recv, recvfrom */ /** + * Found in the wild needed by libcef. It looks like glibc moved to a + * pure preprocessor-based solution some time ago, but this remains for + * compatibility. + */ +struct cmsghdr *__cmsg_nxthdr(struct msghdr *msg, struct cmsghdr *cmsg) +{ + return CMSG_NXTHDR(msg, cmsg); +} + +/** * Receive a message from a connected socket, with buffer overflow checking. * * LSB 5.0: LSB-Core-generic/baselib---recv-chk-1.html |