summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.rst6
-rw-r--r--libgcompat/socket.c10
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