<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,15 +1,15 @@
 /* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */
 /*
  * Implementation for SocketStore class.
- * 
+ *
  * Copyright (c) 2009 Webroot Software, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may not
  * use this file except in compliance with the License. You may obtain a copy of
  * the License at
- * 
+ *
  * http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -28,6 +28,10 @@
 #include &lt;sys/socket.h&gt;
 #include &lt;cerrno&gt;
 
+#if !defined(MSG_NOSIGNAL) &amp;&amp; defined(__APPLE__)
+#define MSG_NOSIGNAL MSG_HAVEMORE
+#endif
+
 namespace Voldemort {
 
 using namespace std;
@@ -39,7 +43,7 @@ Connection::Connection(const string&amp; hostName,
                        const string&amp; negString,
                        shared_ptr&lt;ClientConfig&gt;&amp; conf)
     : config(conf), host(hostName), port(portNum), negotiationString(negString),
-      io_service(), resolver(io_service), timer(io_service), 
+      io_service(), resolver(io_service), timer(io_service),
       socket(io_service), connbuf(NULL), connstream(NULL), active(false) {
 }
 
@@ -57,15 +61,15 @@ void Connection::connect() {
                            boost::bind(&amp;Connection::handle_resolve, this,
                                        asio::placeholders::error,
                                        asio::placeholders::iterator));
-    
+
     wait_for_operation(config-&gt;getConnectionTimeoutMs());
 }
 
-void Connection::check_error(const system::error_code&amp; err) {
+void Connection::check_error(const boost::system::error_code&amp; err) {
     if (err) {
         active = false;
         throw UnreachableStoreException(err.message());
-    } 
+    }
 }
 
 void Connection::wait_for_operation(long millis)
@@ -91,22 +95,22 @@ void Connection::timeout() {
     op_timeout = true;
 }
 
-void Connection::handle_resolve(const system::error_code&amp; err,
+void Connection::handle_resolve(const boost::system::error_code&amp; err,
                                 tcp::resolver::iterator endpoint_iterator) {
     check_error(err);
-    
+
     // Attempt a connection to the first endpoint in the list. Each endpoint
     // will be tried until we successfully establish a connection.
     tcp::endpoint endpoint = *endpoint_iterator;
     socket.async_connect(endpoint,
-                         boost::bind(&amp;Connection::handle_connect, 
+                         boost::bind(&amp;Connection::handle_connect,
                                      this,
-                                     asio::placeholders::error, 
+                                     asio::placeholders::error,
                                      ++endpoint_iterator));
 
 }
 
-void Connection::handle_connect(const system::error_code&amp; err,
+void Connection::handle_connect(const boost::system::error_code&amp; err,
                                 tcp::resolver::iterator endpoint_iterator) {
     if (!err) {
         /* We're done with ASIO now, since it performs really poorly
@@ -141,9 +145,9 @@ void Connection::handle_connect(const system::error_code&amp; err,
         socket.close();
         tcp::endpoint endpoint = *endpoint_iterator;
         socket.async_connect(endpoint,
-                             boost::bind(&amp;Connection::handle_connect, 
+                             boost::bind(&amp;Connection::handle_connect,
                                          this,
-                                         asio::placeholders::error, 
+                                         asio::placeholders::error,
                                          ++endpoint_iterator));
     } else {
         check_error(err);
@@ -175,7 +179,7 @@ size_t Connection::read_some(char* buffer, size_t bufferLen) {
 }
 
 #if 0
-void Connection::handle_data_op(const system::error_code&amp; err,
+void Connection::handle_data_op(const boost::system::error_code&amp; err,
                                 size_t transferred) {
     check_error(err);
     bytesTransferred = transferred;
@@ -212,7 +216,7 @@ void Connection::close() {
     resolver.cancel();
 }
 
-ConnectionBuffer::ConnectionBuffer(Connection&amp; con) 
+ConnectionBuffer::ConnectionBuffer(Connection&amp; con)
     : conn(con), unbuffered_(false) {
     init_buffers();
 };
@@ -234,8 +238,8 @@ void ConnectionBuffer::init_buffers() {
 
 int ConnectionBuffer::underflow() {
     if (gptr() == egptr()) {
-        size_t bytes_transferred = 
-            conn.read_some(get_buffer_.begin() + putback_max, 
+        size_t bytes_transferred =
+            conn.read_some(get_buffer_.begin() + putback_max,
                            get_buffer_.size());
         if (bytes_transferred &lt; 0)
             return traits_type::eof();
@@ -263,7 +267,7 @@ int ConnectionBuffer::overflow(int c) {
         }
     } else {
         // Send all data in the output buffer.
-         size_t bytes_transferred = 
+         size_t bytes_transferred =
              conn.write(pbase(), pptr() - pbase());
          if (bytes_transferred &lt;= 0)
              return traits_type::eof();</diff>
      <filename>clients/cpp/src/Connection.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -119,16 +119,16 @@ public:
 private:
     void wait_for_operation(long millis);
     void timeout();
-    void handle_connect(const system::error_code&amp; err,
+    void handle_connect(const boost::system::error_code&amp; err,
                         tcp::resolver::iterator endpoint_iterator);
 
-    void handle_resolve(const system::error_code&amp; err,
+    void handle_resolve(const boost::system::error_code&amp; err,
                         tcp::resolver::iterator endpoint_iterator);
 #if 0
-    void handle_data_op(const system::error_code&amp; err,
+    void handle_data_op(const boost::system::error_code&amp; err,
                         size_t transferred);
 #endif
-    void check_error(const system::error_code&amp; err);
+    void check_error(const boost::system::error_code&amp; err);
 
     shared_ptr&lt;ClientConfig&gt; config;
 </diff>
      <filename>clients/cpp/src/include/Connection.h</filename>
    </modified>
    <modified>
      <diff>@@ -23,6 +23,7 @@
 #include &lt;memory&gt;
 #include &lt;vector&gt;
 #include &lt;sstream&gt;
+#include &lt;iostream&gt;
 
 #include &lt;voldemort/voldemort.h&gt;
 #include &lt;boost/thread/thread.hpp&gt;</diff>
      <filename>clients/cpp/utils/stress.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>864d6a518fd6b6cc3ac129d9abb5f34b7d37e827</id>
    </parent>
  </parents>
  <author>
    <name>Scott Wheeler</name>
    <email>scott@directededge.com</email>
  </author>
  <url>http://github.com/voldemort/voldemort/commit/62f0ce6f23c77e3d901cc7a3e04c2d99b8e5b467</url>
  <id>62f0ce6f23c77e3d901cc7a3e04c2d99b8e5b467</id>
  <committed-date>2009-10-19T16:32:19-07:00</committed-date>
  <authored-date>2009-10-19T16:32:19-07:00</authored-date>
  <message>Build on OS X.</message>
  <tree>41ba163755665611514df28ce1776871c350d42d</tree>
  <committer>
    <name>Scott Wheeler</name>
    <email>scott@directededge.com</email>
  </committer>
</commit>
