Include <cstring> and use "std::" for memset in T[Server]Socket.cpp.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666498 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TServerSocket.cpp b/lib/cpp/src/transport/TServerSocket.cpp
index e1c9906..428dc1b 100644
--- a/lib/cpp/src/transport/TServerSocket.cpp
+++ b/lib/cpp/src/transport/TServerSocket.cpp
@@ -4,6 +4,7 @@
 // See accompanying file LICENSE or visit the Thrift site at:
 // http://developers.facebook.com/thrift/
 
+#include <cstring>
 #include <sys/socket.h>
 #include <sys/poll.h>
 #include <sys/types.h>
@@ -92,7 +93,7 @@
   struct addrinfo hints, *res, *res0;
   int error;
   char port[sizeof("65536") + 1];
-  memset(&hints, 0, sizeof(hints));
+  std::memset(&hints, 0, sizeof(hints));
   hints.ai_family = PF_UNSPEC;
   hints.ai_socktype = SOCK_STREAM;
   hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
@@ -260,7 +261,7 @@
   int numEintrs = 0;
 
   while (true) {
-    memset(fds, 0 , sizeof(fds));
+    std::memset(fds, 0 , sizeof(fds));
     fds[0].fd = serverSocket_;
     fds[0].events = POLLIN;
     if (intSock2_ >= 0) {