Skip to content

src/util/futex.h: fix build on 32-bit architectures using 64-bit time_t

Fabrice Fontaine requested to merge (removed):main into main

Fix the following build failure on 32-bit architectures using 64-bit time_t (e.g. riscv32):

../src/util/futex.h: In function 'sys_futex':
../src/util/futex.h:39:19: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'?
   39 |    return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
      |                   ^~~~~~~~~
      |                   sys_futex

Fixes:

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

Merge request reports