Browse Source

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

JINMEI Tatuya 12 years ago
parent
commit
432064bc3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/util/io/fd_share.cc

+ 1 - 1
src/lib/util/io/fd_share.cc

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