From 243efb267fe539958610ef1e2142a36dfbcd3c28 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 9 Aug 2017 20:39:54 +0200 Subject: Fixed #177: thread id on OpenBSD. --- src/vmime/platforms/posix/posixHandler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 (::gettid()); #elif VMIME_HAVE_SYSCALL && VMIME_HAVE_SYSCALL_GETTID return static_cast (::syscall(SYS_gettid)); +#elif VMIME_HAVE_GETTHRID // OpenBSD + return static_cast (::getthrid()); #else #error We have no implementation of getThreadId() for this platform! #endif -- cgit