summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-01 18:31:59 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-01 18:31:59 -0600
commita855c926fe865911611a82eedaebaf0f780f2bbd (patch)
treefe8e0201ce10c26acdea9f4c0253c6a0996a8a10 /libgcompat
parentc9f8eb168eaecd267e86bafc598a0c1155304b90 (diff)
downloadgcompat-a855c926fe865911611a82eedaebaf0f780f2bbd.tar.gz
gcompat-a855c926fe865911611a82eedaebaf0f780f2bbd.tar.bz2
gcompat-a855c926fe865911611a82eedaebaf0f780f2bbd.tar.xz
gcompat-a855c926fe865911611a82eedaebaf0f780f2bbd.zip
socket: add __cmsg_nxthdr
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/socket.c10
1 files changed, 10 insertions, 0 deletions
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