diff options
| author | Vincent Richard <[email protected]> | 2017-08-09 18:39:54 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2017-08-09 18:39:54 +0000 |
| commit | 243efb267fe539958610ef1e2142a36dfbcd3c28 (patch) | |
| tree | 643d082370021b2a944c9679663c83ce4999d649 /src | |
| parent | Clear OpenSSL error queue before calling a SSL_*() function, then SSL_get_err... (diff) | |
| download | vmime-243efb267fe539958610ef1e2142a36dfbcd3c28.tar.gz vmime-243efb267fe539958610ef1e2142a36dfbcd3c28.zip | |
Fixed #177: thread id on OpenBSD.
Diffstat (limited to 'src')
| -rw-r--r-- | src/vmime/platforms/posix/posixHandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vmime/platforms/posix/posixHandler.cpp b/src/vmime/platforms/posix/posixHandler.cpp index 14877403..e0263b2b 100644 --- a/src/vmime/platforms/posix/posixHandler.cpp +++ b/src/vmime/platforms/posix/posixHandler.cpp @@ -260,6 +260,8 @@ unsigned int posixHandler::getThreadId() const return static_cast <unsigned int>(::gettid()); #elif VMIME_HAVE_SYSCALL && VMIME_HAVE_SYSCALL_GETTID return static_cast <unsigned int>(::syscall(SYS_gettid)); +#elif VMIME_HAVE_GETTHRID // OpenBSD + return static_cast <unsigned int>(::getthrid()); #else #error We have no implementation of getThreadId() for this platform! #endif |
