mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-29 15:44:02 +00:00
libc-net: eliminate annoying warning in sendmsg
Fix genodelabs/genode#5052
This commit is contained in:
parent
040cf2eb2a
commit
e3881163c4
@ -39,6 +39,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "namespace.h"
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -49,6 +50,8 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <stddef.h>
|
||||
#include "un-namespace.h"
|
||||
|
||||
|
||||
ssize_t sendmsg(int s, const struct msghdr *msg, int flags)
|
||||
{
|
||||
@ -73,4 +76,4 @@ ssize_t sendmsg(int s, const struct msghdr *msg, int flags)
|
||||
ret = _sendto(s, buf, tot, flags, msg->msg_name, msg->msg_namelen);
|
||||
free (buf);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user