8000 fix,solaris: invalid conversion from 'unsigned int' to 'void*' ptr · doublerebel/arangodb@0b2d10a · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b2d10a

Browse files
committed
fix,solaris: invalid conversion from 'unsigned int' to 'void*' ptr
1 parent 63ef328 commit 0b2d10a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/Rest/InitializeRest.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,17 @@ unsigned long opensslThreadId() { return (unsigned long)TRI_CurrentThreadId(); }
5858
// The compiler chooses the right one from the following two,
5959
// according to the type of the return value of pthread_self():
6060

61+
#ifndef __sun
6162
template <typename T>
6263
void setter(CRYPTO_THREADID* id, T p) {
6364
CRYPTO_THREADID_set_pointer(id, p);
6465
}
66+
#else
67+
template <typename T>
68+
void setter(CRYPTO_THREADID* id, T p) {
69+
CRYPTO_THREADID_set_pointer(id, (void *) (intptr_t) p);
70+
}
71+
#endif
6572

6673
#ifndef __APPLE__
6774
template <>

0 commit comments

Comments
 (0)
0