glibc strftime.c _REENTRANT problem (GNU Emacs 20.3, Solaris 2.6)

Ulrich Drepper drepper@cygnus.com
Mon Sep 7 14:33:00 GMT 1998


Paul Eggert <eggert@twinsun.com> writes:

> If the right approach is to fix config.h to define _REENTRANT to be
> 1, then the now-ineffective `#define _REENTRANT 1' should be removed
> from strftime.c entirely.

I don't think so.  Config.h should not include any headers.  The
sources should contain the #includes (protected by the #ifs) or there
should be another header which includes other headers (most of the
time called system.h).

Whatever possibility is chosen, the _REENTRANT definition in
strftime.c should preceed the #include.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------



More information about the Libc-alpha mailing list