[PATCH 29/34] Linux: Define TIMER_T_WAS_INT_COMPAT in kernel-posix-timers.h

Adhemerval Zanella adhemerval.zanella@linaro.org
Thu Jun 24 16:21:13 GMT 2021



On 17/06/2021 15:59, Florian Weimer via Libc-alpha wrote:
> diff --git a/sysdeps/unix/sysv/linux/kernel-posix-timers.h b/sysdeps/unix/sysv/linux/kernel-posix-timers.h
> index 17fc32d48f..874b809eba 100644
> --- a/sysdeps/unix/sysv/linux/kernel-posix-timers.h
> +++ b/sysdeps/unix/sysv/linux/kernel-posix-timers.h
> @@ -103,3 +103,7 @@ timerid_to_kernel_timer (timer_t timerid)
>    else
>      return (kernel_timer_t) ((uintptr_t) timerid);
>  }
> +
> +/* New targets use int instead of timer_t.  The difference only
> +   matters on 64-bit targets.  */
> +#define TIMER_T_WAS_INT_COMPAT 0

I think it would be better to move this to its own file, so there is no need to
include, undef, define on each arch-specific files.


More information about the Libc-alpha mailing list