tzset claimed to be ANSI not POSIX in fix-header.c

Jonathan Larmour
Thu Mar 11 06:00:00 GMT 2004

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  <>

	* fix-header.c: tzset() is POSIX not ANSI.


eCosCentric    The eCos and RedBoot experts
 >>>>> Visit us in booth 2527 at the Embedded Systems Conference 2004 <<<<<
March 30 - April 1, San Francisco
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tzset.posix.fixh.patch.txt
URL: <>

More information about the Gcc-patches mailing list