From: Brad Smith Date: Thu, 2 Nov 2023 00:22:58 +0000 (-0400) Subject: main/utils: Implement ast_get_tid() for OpenBSD X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29a3e5660bd8cbe6985ccb3a5571bdc150e42497;p=thirdparty%2Fasterisk.git main/utils: Implement ast_get_tid() for OpenBSD Implement the ast_get_tid() function for OpenBSD. OpenBSD supports getting the TID via getthrid(). --- diff --git a/main/utils.c b/main/utils.c index a31e467a1b..58ba1914f8 100644 --- a/main/utils.c +++ b/main/utils.c @@ -2763,6 +2763,8 @@ int ast_get_tid(void) ret = lwpid; #elif defined(__NetBSD__) ret = _lwp_self(); +#elif defined(__OpenBSD__) + ret = getthrid(); #endif return ret; }