ports/telephony/asterisk/18/patches/patch-main_utils_c

12 lines
302 B
Text

Index: main/utils.c
--- main/utils.c.orig
+++ main/utils.c
@@ -2761,6 +2761,8 @@ int ast_get_tid(void)
long lwpid;
thr_self(&lwpid); /* available since sys/thr.h creation 2003 */
ret = lwpid;
+#elif defined(__OpenBSD__)
+ ret = getthrid();
#elif defined(__NetBSD__)
ret = _lwp_self();
#endif