diff options
Diffstat (limited to 'net/libiscsi/files/patch-lib_multithreading.c')
-rw-r--r-- | net/libiscsi/files/patch-lib_multithreading.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/libiscsi/files/patch-lib_multithreading.c b/net/libiscsi/files/patch-lib_multithreading.c new file mode 100644 index 000000000000..48f51331ce5d --- /dev/null +++ b/net/libiscsi/files/patch-lib_multithreading.c @@ -0,0 +1,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 |