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/02/28 21:34:06 UTC
svn commit: r1294819 - /thrift/trunk/lib/cpp/src/windows/config.h
Author: roger
Date: Tue Feb 28 20:34:06 2012
New Revision: 1294819
URL: http://svn.apache.org/viewvc?rev=1294819&view=rev
Log:
THRIFT-1524 TNonBlockingServer does not compile in Visual Studio 2010
Patch: Christian Taedcke
Modified:
thrift/trunk/lib/cpp/src/windows/config.h
Modified: thrift/trunk/lib/cpp/src/windows/config.h
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/windows/config.h?rev=1294819&r1=1294818&r2=1294819&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/windows/config.h (original)
+++ thrift/trunk/lib/cpp/src/windows/config.h Tue Feb 28 20:34:06 2012
@@ -142,9 +142,9 @@ inline int poll_win32(LPWSAPOLLFD fdArra
}
#endif // WINVER
-inline void close(SOCKET socket)
+inline int close(SOCKET socket)
{
- ::closesocket(socket);
+ return ::closesocket(socket);
}
#endif // _THRIFT_WINDOWS_CONFIG_H_