Commit 7120cdbd authored by Youness Alaoui's avatar Youness Alaoui

if MSG_ERRQUEUE is not defined, then make recv_err return something since it's not a void function

parent dbc4c346
...@@ -163,6 +163,8 @@ static int recv_err (int fd) ...@@ -163,6 +163,8 @@ static int recv_err (int fd)
struct msghdr hdr; struct msghdr hdr;
memset (&hdr, 0, sizeof (hdr)); memset (&hdr, 0, sizeof (hdr));
return recvmsg (fd, &hdr, MSG_ERRQUEUE) >= 0; return recvmsg (fd, &hdr, MSG_ERRQUEUE) >= 0;
#else
return 0;
#endif #endif
} }
......
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