Re: [PATCH] winsup: delete old _LIBC logic

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Nov  9 19:46, Mike Frysinger wrote:
> This logic has never been used as we don't define _LIBC and the
> reentrant.h header doesn't exist, so delete it all.
> ---
>  winsup/cygwin/tzcode/private.h | 15 ---------------
>  1 file changed, 15 deletions(-)
> 
> diff --git a/winsup/cygwin/tzcode/private.h b/winsup/cygwin/tzcode/private.h
> index 830750ad5b1d..beae506d2270 100644
> --- a/winsup/cygwin/tzcode/private.h
> +++ b/winsup/cygwin/tzcode/private.h
> @@ -777,19 +777,4 @@ char *ctime_r(time_t const *, char *);
>    ((int_fast64_t) YEARSPERREPEAT * (int_fast64_t) AVGSECSPERYEAR)
>  #define SECSPERREPEAT_BITS	34	/* ceil(log2(SECSPERREPEAT)) */
>  
> -#ifdef _LIBC
> -#include "reentrant.h"
> -extern struct __state *__lclptr;
> -#if defined(__LIBC12_SOURCE__)
> -#define tzset_unlocked __tzset_unlocked
> -#else
> -#define tzset_unlocked __tzset_unlocked50
> -#endif
> -
> -void tzset_unlocked(void);
> -#ifdef _REENTRANT
> -extern rwlock_t __lcl_lock;
> -#endif
> -#endif
> -
>  #endif /* !defined PRIVATE_H */
> -- 

ACK.  Please push.


Thanks,
Corinna
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.