More Mac tweaks.
This commit is contained in:
parent
53dbac9485
commit
8f314994db
12 changed files with 101 additions and 49 deletions
|
|
@ -34,7 +34,7 @@ sendfd(int s, int fd)
|
|||
sfd.cmsg.cmsg_type = SCM_RIGHTS;
|
||||
sfd.fd = fd;
|
||||
|
||||
msg.msg_control = &sfd;
|
||||
msg.msg_control = (caddr_t)&sfd;
|
||||
msg.msg_controllen = sizeof sfd;
|
||||
|
||||
if((n=sendmsg(s, &msg, 0)) != iov.iov_len)
|
||||
|
|
@ -66,7 +66,7 @@ recvfd(int s)
|
|||
sfd.cmsg.cmsg_level = SOL_SOCKET;
|
||||
sfd.cmsg.cmsg_type = SCM_RIGHTS;
|
||||
|
||||
msg.msg_control = &sfd;
|
||||
msg.msg_control = (caddr_t)&sfd;
|
||||
msg.msg_controllen = sizeof sfd;
|
||||
|
||||
if((n=recvmsg(s, &msg, 0)) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue