Archived
This forum has been archived. Please start a new discussion on GitHub.
OpenSSLPluginI.cpp, invalid static cast on FreeBSD
Hi,
With Ice 1.0.1, I get the following compilation error on FreeBSD:
OpenSSLPluginI.cpp: In function `long unsigned int IceSSL::idFunction()':
OpenSSLPluginI.cpp:154: invalid static_cast from type `pthread*' to type `long
unsigned int'
The reason for this is that on FreeBSD, pthread_t is a pointer to a struct, so you
cannot static_cast it. Here is a patch to do a reinterpret_cast<> on FreeBSD.
With Ice 1.0.1, I get the following compilation error on FreeBSD:
OpenSSLPluginI.cpp: In function `long unsigned int IceSSL::idFunction()':
OpenSSLPluginI.cpp:154: invalid static_cast from type `pthread*' to type `long
unsigned int'
The reason for this is that on FreeBSD, pthread_t is a pointer to a struct, so you
cannot static_cast it. Here is a patch to do a reinterpret_cast<> on FreeBSD.
0