You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2012/10/06 08:00:48 UTC

svn commit: r1394931 - in /thrift/trunk/lib/cpp/src/thrift/transport: TServerSocket.h TSocket.h

Author: roger
Date: Sat Oct  6 06:00:47 2012
New Revision: 1394931

URL: http://svn.apache.org/viewvc?rev=1394931&view=rev
Log:
THRIFT-1690
Non-linux OSes use int's in bsd socket calls as well.

Modified:
    thrift/trunk/lib/cpp/src/thrift/transport/TServerSocket.h
    thrift/trunk/lib/cpp/src/thrift/transport/TSocket.h

Modified: thrift/trunk/lib/cpp/src/thrift/transport/TServerSocket.h
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/thrift/transport/TServerSocket.h?rev=1394931&r1=1394930&r2=1394931&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/thrift/transport/TServerSocket.h (original)
+++ thrift/trunk/lib/cpp/src/thrift/transport/TServerSocket.h Sat Oct  6 06:00:47 2012
@@ -22,7 +22,7 @@
 
 #include "TServerTransport.h"
 #include <boost/shared_ptr.hpp>
-#ifdef __linux__
+#ifndef _WIN32
    typedef int SOCKET;
 #endif
 

Modified: thrift/trunk/lib/cpp/src/thrift/transport/TSocket.h
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/thrift/transport/TSocket.h?rev=1394931&r1=1394930&r2=1394931&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/thrift/transport/TSocket.h (original)
+++ thrift/trunk/lib/cpp/src/thrift/transport/TSocket.h Sat Oct  6 06:00:47 2012
@@ -32,7 +32,7 @@
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#ifdef __linux__
+#ifndef _WIN32
    typedef int SOCKET;
 #endif