summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
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