[PATCH v4] Always define __USE_TIME_BITS64 when 64 bit time_t is used
Mark Harris
mark.hsj@gmail.com
Sat Mar 16 09:04:03 GMT 2024
Adhemerval Zanella wrote:
> diff --git a/sysdeps/generic/features-time64.h b/sysdeps/generic/features-time64.h
> index 4d38b8ba76..0c5b74d631 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
> +/* The following macro defines whether the 64 time_t redirects will be
> + used for 64 bit aware symbols. */
> +#define __USE_TIME64_REDIRECTS 0
These macros are tested with #ifdef/#ifndef, so by defining them they
are enabled. It looks like this generic header should be leaving
these undefined.
- Mark
More information about the Libc-alpha
mailing list