
The files ftp://elsie.nci.nih.gov/pub/tzcode2004g.tar.gz and ftp://elsie.nci.nih.gov/pub/tzdata2004g.tar.gz are now available. The most important change is the update to Cuba (taking effect this weekend); the other changes circulated yesterday by Paul Eggert are includes, as well as a correction of the spelling of Oslo and changed versions of difftime.c and private.h. --ado

I ran into the following problem compiling the latest difftime.c on Solaris 8 with GCC 3.4.2, compiling with CFLAGS='-g -O -Wall -W -D__EXTENSIONS__ -DHAVE_INCOMPATIBLE_CTIME_R=1 -DUSG_COMPAT -DALTZONE -DHAVE_GETTEXT -DHAVE_LONG_DOUBLE -DHAVE_SETTIMEOFDAY=3 -DHAVE_STRERROR -DHAVE_UTMPX_H': In file included from difftime.c:15: private.h:306: error: conflicting types for 'asctime_r' /usr/include/time.h:272: error: previous declaration of 'asctime_r' was here I guess the problem is that sys/types.h brings in asctime_r before private.h has a chance to munge it. Here is a patch. --- difftime.c 2004/11/01 18:33:49 2004.7 +++ difftime.c 2004/11/08 23:27:09 @@ -11,8 +11,7 @@ static char elsieid[] = "@(#)difftime.c /*LINTLIBRARY*/ -#include "sys/types.h" /* for time_t */ -#include "private.h" /* for TYPE_INTEGRAL and TYPE_SIGNED */ +#include "private.h" /* for time_t, TYPE_INTEGRAL and TYPE_SIGNED */ double difftime(time1, time0)
participants (2)
-
Olson, Arthur David (NIH/NCI)
-
Paul Eggert