[PATCH v5] Always define __USE_TIME_BITS64 when 64 bit time_t is used
Andreas Schwab
schwab@suse.de
Mon Mar 18 12:07:13 GMT 2024
On Mär 18 2024, Adhemerval Zanella wrote:
> diff --git a/manual/maint.texi b/manual/maint.texi
> index 89da704f45..1c441eb5f7 100644
> --- a/manual/maint.texi
> +++ b/manual/maint.texi
> @@ -491,6 +491,10 @@ derived as in the dual-time configuration case, and which expands to
> the symbol's name. For instance, the macro @code{__clock_gettime64}
> expands to @code{clock_gettime}.
>
> +When @code{__TIMESIZE == 64} is set, @theglibc{} will also define the
When @code{__TIMESIZE} is set to 64,
> +@code{__USE_TIME_BITS64}. It is used by the Linux kernel ABI to set the
the @code{__USE_TIME_BITS64} macro.
> diff --git a/sysdeps/generic/features-time64.h b/sysdeps/generic/features-time64.h
> index 4d38b8ba76..8fe811bd9e 100644
> --- a/sysdeps/generic/features-time64.h
> +++ b/sysdeps/generic/features-time64.h
> @@ -17,3 +17,7 @@
> <https://www.gnu.org/licenses/>. */
>
> /* The generic configuration only support _TIME_BITS=32. */
> +#define __USE_TIME_BITS64 0
This is supposed to be used with #ifdef, it should not be defined here.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list