This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: tzset claimed to be ANSI not POSIX in fix-header.c
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Jonathan Larmour <jifl at eCosCentric dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Mar 2004 23:20:03 -0800
- Subject: Re: tzset claimed to be ANSI not POSIX in fix-header.c
- References: <40500076.2060009@eCosCentric.com><40500F03.5070508@eCosCentric.com>
Jonathan Larmour <jifl@eCosCentric.com> writes:
> Jonathan Larmour wrote:
>> gcc/fix-header.c incorrectly defines tzset() to be an ANSI symbol
>> when in fact it is POSIX.1. I am developing on a system where a
>> system header gets "fixed" to define tzset(), when tzset() doesn't
>> in fact exist in this system. The attached patch, against GCC 3.3.2
>> fixes this (I have bootstrap problems with GCC 3.3.3 on target
>> arm-elf). As well as the GCC 3.3 branch it should also be applied to
>> the trunk.
>> 2004-03-10 Jonathan Larmour <jifl@eCosCentric.com>
>> * fix-header.c: tzset() is POSIX not ANSI.
>
> Sorry for not noticing, but tzset isn't the only function in this
> category. putenv() and kill() are also POSIX, not ANSI. Therefore
> please instead use the attached page and ChangeLog entry. Thanks!
>
>
> 2004-03-10 Jonathan Larmour <jifl@eCosCentric.com>
>
> * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
Ok.
zw