[PATCH v4] Always define __USE_TIME_BITS64 when 64 bit time_t is used
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Mar 18 11:21:21 GMT 2024
On 16/03/24 06:04, Mark Harris wrote:
> 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.
Indeed (and it would probably be wrong for Hurd).
More information about the Libc-alpha
mailing list