Commit 83797ed7 authored by Steve Lhomme's avatar Steve Lhomme

compat: use proper check for the sys/uio.h availability

parent 3cea7a78
......@@ -91,7 +91,9 @@ ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
{
......
......@@ -81,7 +81,9 @@ ssize_t sendmsg(int fd, const struct msghdr *msg, int flags)
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif
ssize_t sendmsg(int fd, const struct msghdr *msg, int flags)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment