[PATCH] provide y2038 safe socket constants
Joseph Myers
joseph@codesourcery.com
Tue Mar 31 21:22:45 GMT 2020
On Tue, 31 Mar 2020, Vineet Gupta via Libc-alpha wrote:
> On 3/31/20 1:45 PM, Joseph Myers wrote:
> > I'm concerned the present patch is wrong for x32, however; that has
> > __TIMESIZE == 64 && __WORDSIZE == 32 but should use the old values; the
> > patch should be using __SYSCALL_WORDSIZE when available in place of
> > __WORDSIZE.
>
> Something like below ?
>
> -#if __TIMESIZE == 64 && __WORDSIZE == 32
>
> +#if TIMESIZE == 64 && (__WORDSIZE == 32 \
> && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32))
Yes, that sort of thing.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list