Commit c66fe1c8 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] add std:: for memset(). sunstudio requires this with <cstring>

parent 1eb3ce6d
......@@ -142,7 +142,7 @@ send_fd(const int sock, const int fd) {
if (msghdr.msg_control == NULL) {
return (FD_OTHER_ERROR);
}
memset(msghdr.msg_control, 0, msghdr.msg_controllen);
std::memset(msghdr.msg_control, 0, msghdr.msg_controllen);
struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msghdr);
cmsg->cmsg_len = cmsg_len(sizeof(int));
......
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