commit | 84e4a3c1819346dc5e5fcc4c4701e6c43afa1041 | [log] [tgz] |
---|---|---|
author | Roger Meier <roger@apache.org> | Fri Sep 16 20:58:44 2011 +0000 |
committer | Roger Meier <roger@apache.org> | Fri Sep 16 20:58:44 2011 +0000 |
tree | b7d7f70cf71cf15ddab80ecbf2f929d4fa4a80ec | |
parent | 508b31726970bdda43e8fa925b08a2a594046f61 [diff] [blame] |
THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0 Patch: James Dickson and Alexandre Parenteau git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1171777 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/server/TNonblockingServer.h b/lib/cpp/src/server/TNonblockingServer.h index a26fcc5..da36045 100644 --- a/lib/cpp/src/server/TNonblockingServer.h +++ b/lib/cpp/src/server/TNonblockingServer.h
@@ -60,7 +60,11 @@ #endif #ifndef SOCKOPT_CAST_T -#define SOCKOPT_CAST_T void +# ifndef _WIN32 +# define SOCKOPT_CAST_T void +# else +# define SOCKOPT_CAST_T char +# endif // _WIN32 #endif template<class T>