Files
ports/net/libiscsi/files/patch-lib_multithreading.c
T
Martin Birgmeier 9289343def net/libiscsi: Update 1.20.0.240205 => 1.20.1
Commit log:
https://github.com/sahlberg/libiscsi/compare/1.20.1...1.20.2

- Add libthr search to configure.ac.
- Add STRIP_CMD as suggested by poudriere testport.
- Refresh patches.
- Bump consumers (emulators/qemu and emulators/qemu8) in next commmit
  because the soname is bumped.

PR:		286546
Co-authored-by:	vvd
2025-05-06 20:35:37 +03:00

12 lines
350 B
C

--- 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