autoconf/automake/libtool-ized thrift cpp bits:
Moved the original Makefile => Makefile.slee
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664731 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TSocket.cc b/lib/cpp/src/transport/TSocket.cc
index 3471755..55f512e 100644
--- a/lib/cpp/src/transport/TSocket.cc
+++ b/lib/cpp/src/transport/TSocket.cc
@@ -162,9 +162,16 @@
uint32_t sent = 0;
while (sent < len) {
+
+ int flags = 0;
+
+ #if HAVE_BITS_SOCKET_H
// Note the use of MSG_NOSIGNAL to suppress SIGPIPE errors, instead we
// check for the EPIPE return condition and close the socket in that case
- int b = send(socket_, buf + sent, len - sent, MSG_NOSIGNAL);
+ flags |= MSG_NOSIGNAL;
+ #endif // HAVE_BITS_SOCKET_H
+
+ int b = send(socket_, buf + sent, len - sent, flags);
++g_socket_syscalls;
// Fail on a send error