Skip to content

Commit b2902d2

Browse files
authored
Openbsd support (#104)
1 parent 2837179 commit b2902d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

trantor/utils/Logger.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ void Logger::formatTime()
108108
{
109109
threadId_ = pthread_getthreadid_np();
110110
}
111+
#elif defined __OpenBSD__
112+
if (threadId_ == 0)
113+
{
114+
threadId_ = getthrid();
115+
}
111116
#elif defined _WIN32
112117
if (threadId_ == 0)
113118
{

0 commit comments

Comments
 (0)