7 Feb
2024
7 Feb
'24
7:40 p.m.
Brendan Shanks (@bshanks) commented about dlls/ntdll/unix/server.c:
#elif defined(__NetBSD__) ret = _lwp_self(); #elif defined(__FreeBSD__) - long lwpid; - thr_self( &lwpid ); - ret = lwpid; + thr_self( &ret ); I think this FreeBSD codepath can be removed (maybe in a separate commit), FreeBSD has supported `pthread_getthreadid_np()` since 9.0.
(Or if it stays in, I don't think this change is correct, `long` on 32-bit FreeBSD is still 32-bit.) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5047#note_60521