8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ef328 commit 0b2d10aCopy full SHA for 0b2d10a
lib/Rest/InitializeRest.cpp
@@ -58,10 +58,17 @@ unsigned long opensslThreadId() { return (unsigned long)TRI_CurrentThreadId(); }
58
// The compiler chooses the right one from the following two,
59
// according to the type of the return value of pthread_self():
60
61
+#ifndef __sun
62
template <typename T>
63
void setter(CRYPTO_THREADID* id, T p) {
64
CRYPTO_THREADID_set_pointer(id, p);
65
}
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
72
73
#ifndef __APPLE__
74
template <>
0 commit comments