mirror of https://gitee.com/bigwinds/arangodb
fix,solaris: invalid conversion from 'unsigned int' to 'void*' ptr
This commit is contained in:
parent
63ef328ad6
commit
0b2d10a603
|
@ -58,10 +58,17 @@ unsigned long opensslThreadId() { return (unsigned long)TRI_CurrentThreadId(); }
|
||||||
// The compiler chooses the right one from the following two,
|
// The compiler chooses the right one from the following two,
|
||||||
// according to the type of the return value of pthread_self():
|
// according to the type of the return value of pthread_self():
|
||||||
|
|
||||||
|
#ifndef __sun
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void setter(CRYPTO_THREADID* id, T p) {
|
void setter(CRYPTO_THREADID* id, T p) {
|
||||||
CRYPTO_THREADID_set_pointer(id, p);
|
CRYPTO_THREADID_set_pointer(id, p);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
template <typename T>
|
||||||
|
void setter(CRYPTO_THREADID* id, T p) {
|
||||||
|
CRYPTO_THREADID_set_pointer(id, (void *) (intptr_t) p);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
template <>
|
template <>
|
||||||
|
|
Loading…
Reference in New Issue