summaryrefslogtreecommitdiff
path: root/net/libiscsi/files/patch-lib_multithreading.c
blob: 48f51331ce5d6c011b8a35e159b37167dd5e496a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/multithreading.c.orig	2025-05-03 00:02:42 UTC
+++ lib/multithreading.c
@@ -154,6 +154,8 @@ iscsi_tid_t iscsi_mt_get_tid(void)
 #elif defined(SYS_gettid)
         pid_t tid = syscall(SYS_gettid);
         return tid;
+#elif defined(__FreeBSD__)
+	return pthread_getthreadid_np();
 #else
 #error "SYS_gettid unavailable on this system"
 #endif