* private.h (_FILE_OFFSET_BITS): Do not define if _TIME_BITS is already defined, as it is not necessary to use 64-bit off_t if the builder has asked for 32-bit time_t. --- private.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/private.h b/private.h index 7a3b3991..fcec70ca 100644 --- a/private.h +++ b/private.h @@ -162,11 +162,13 @@ setting _TIME_BITS to 64 does not work. The code does not otherwise rely on _FILE_OFFSET_BITS being 64, since it does not use off_t or functions like 'stat' that depend on off_t. */ -#ifndef _FILE_OFFSET_BITS -# define _FILE_OFFSET_BITS 64 -#endif -#if !defined _TIME_BITS && _FILE_OFFSET_BITS == 64 -# define _TIME_BITS 64 +#ifndef _TIME_BITS +# ifndef _FILE_OFFSET_BITS +# define _FILE_OFFSET_BITS 64 +# endif +# if _FILE_OFFSET_BITS == 64 +# define _TIME_BITS 64 +# endif #endif /* -- 2.47.0