[ 
https://issues.apache.org/jira/browse/THRIFT-3206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14604084#comment-14604084
 ] 

Paweł edited comment on THRIFT-3206 at 6/27/15 11:22 AM:
---------------------------------------------------------

Issue was resolved by using native WINAPI equivalent  
[GetCurrentThreadId()|https://msdn.microsoft.com/en-us/library/windows/desktop/ms683183(v=vs.85).aspx]
 in case source is compiled when _WIN32 macro is defined.



was (Author: pjanicki):
The code calls 
[pthread_self()|http://man7.org/linux/man-pages/man3/pthread_self.3.html] which 
is not available on Windows platform in current thrift library dependency set.

Issue was resolved by using native WINAPI equivalent  
[GetCurrentThreadId()|https://msdn.microsoft.com/en-us/library/windows/desktop/ms683183(v=vs.85).aspx]
 in case source is compiled when _WIN32 macro is defined.


> Fix Visual Studio build failure due 'pthread_self': identifier not found
> ------------------------------------------------------------------------
>
>                 Key: THRIFT-3206
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3206
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 0.9.2
>         Environment: Visual Studio 2013 Update 5 RC
>            Reporter: Paweł
>              Labels: easyfix
>         Attachments: THRIFT-3206.patch
>
>
> Build fail of project lib\cpp\libthrift.vcxproj due to compile error
> {noformat}
> 1>c:\...\thrift\lib\cpp\src\thrift\transport\tsslsocket.cpp(69): error C3861: 
> 'pthread_self': identifier not found
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to