[PATCH v2] ntdll: Fix passing timeout to FUTEX_WAIT when 64-bit time_t is used.

Zebediah Figura zfigura at codeweavers.com
Fri Apr 22 13:03:28 CDT 2022


On 4/22/22 07:29, Piotr Caban wrote:
> Signed-off-by: Piotr Caban <piotr at codeweavers.com>
> ---
> I'm not sure if it's the best way of fixing the problem. I can't find 
> anything else except of detecting time_t size at runtime.
> 
>   dlls/ntdll/unix/sync.c | 27 +++++++++++++++++++++------
>   1 file changed, 21 insertions(+), 6 deletions(-)
> 

This will disable futexes if running under a kernel older than 5.1, 
though, which doesn't seem ideal. It should be relatively easy to keep 
the 32-bit wait as a fall-back path.

I also don't think we want to check __USE_TIME_BITS64, since that's an 
internal symbol.

I think it may be easiest just to manually define the timespec structure(s).



More information about the wine-devel mailing list