I'm getting this error:
But I've patched CMake-3.15.3/Utilities/cmlibuv/src/unix/core.c with #include <socket.h> . I don't really see the point of this because it's already there as sys/socket.h , but ok.
Here's the snippit of code:
Any ideas what else I should look for?
C:
/usr/people/edodd/projects/github/unxmaal/irixports/ports/cmake/CMake-3.15.3/Utilities/cmlibuv/src/unix/core.c: In function 'uv__recvmsg':
/usr/people/edodd/projects/github/unxmaal/irixports/ports/cmake/CMake-3.15.3/Utilities/cmlibuv/src/unix/core.c:672:28: error: 'SCM_RIGHTS' undeclared (first use in this function); did you mean 'RB_RIGHT'?
if (cmsg->cmsg_type == SCM_RIGHTS)
^~~~~~~~~~
RB_RIGHT
Here's the snippit of code:
C:
#endif
if (rc == -1)
return UV__ERR(errno);
if (msg->msg_controllen == 0)
return rc;
for (cmsg = CMSG_FIRSTHDR(msg); cmsg != NULL; cmsg = CMSG_NXTHDR(msg, cmsg))
if (cmsg->cmsg_type == SCM_RIGHTS)
for (pfd = (int*) CMSG_DATA(cmsg),
end = (int*) ((char*) cmsg + cmsg->cmsg_len);
pfd < end;
pfd += 1)
uv__cloexec(*pfd, 1);
return rc;
}