You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2016/07/15 13:20:20 UTC

[jira] [Assigned] (THRIFT-3878) Compile error in TSSLSocket.cpp

     [ https://issues.apache.org/jira/browse/THRIFT-3878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James E. King, III reassigned THRIFT-3878:
------------------------------------------

    Assignee: James E. King, III

> Compile error in TSSLSocket.cpp
> -------------------------------
>
>                 Key: THRIFT-3878
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3878
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Library
>    Affects Versions: 1.0
>         Environment: VS2013
>            Reporter: Sergey Fasman
>            Assignee: James E. King, III
>            Priority: Trivial
>
> In TSSLSocket if use new OpenSSL library will be compile error.
> That because CRYPTO_num_locks is now macro-call instead of function.
> So I simply fix that:
> #ifdef CRYPTO_num_locks
>   mutexes = boost::shared_array<Mutex>(new Mutex[CRYPTO_num_locks()]);
> #else
>   mutexes = boost::shared_array<Mutex>(new Mutex[ ::CRYPTO_num_locks()]);
> #endif



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