THRIFT-1690
authorRoger Meier <roger@apache.org>
Sat, 6 Oct 2012 06:00:47 +0000 (06:00 +0000)
committerRoger Meier <roger@apache.org>
Sat, 6 Oct 2012 06:00:47 +0000 (06:00 +0000)
Non-linux OSes use int's in bsd socket calls as well.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1394931 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/thrift/transport/TServerSocket.h
lib/cpp/src/thrift/transport/TSocket.h

index fb93eb4..2ee7593 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "TServerTransport.h"
 #include <boost/shared_ptr.hpp>
-#ifdef __linux__
+#ifndef _WIN32
    typedef int SOCKET;
 #endif
 
index 4f091c4..ecf6d79 100644 (file)
@@ -32,7 +32,7 @@
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#ifdef __linux__
+#ifndef _WIN32
    typedef int SOCKET;
 #endif