From 1a35bb6d71b6301287e21aaabd112997ea0f0a7f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 9 Nov 2023 20:32:47 +0100 Subject: Build: add Solaris compilation support (#282) --- src/vmime/platforms/posix/posixHandler.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/vmime/platforms/posix/posixHandler.cpp b/src/vmime/platforms/posix/posixHandler.cpp index eecdbea9..148d2169 100644 --- a/src/vmime/platforms/posix/posixHandler.cpp +++ b/src/vmime/platforms/posix/posixHandler.cpp @@ -48,6 +48,9 @@ #if VMIME_HAVE_SYSCALL # include #endif +#if VMIME_HAVE_LWP_SELF +# include +#endif #include @@ -227,6 +230,8 @@ unsigned int posixHandler::getThreadId() const { return static_cast (::syscall(SYS_gettid)); #elif VMIME_HAVE_GETTHRID // OpenBSD return static_cast (::getthrid()); +#elif VMIME_HAVE_LWP_SELF // Solaris + return static_cast (::_lwp_self()); #else #error We have no implementation of getThreadId() for this platform! #endif -- cgit v1.2.3