On 4/22/22 07:29, Piotr Caban wrote:
Signed-off-by: Piotr Caban piotr@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).