e$B%k%S3+H/<T$N3’$5$s!"e(B
e$B:G?7$Ne(B HEAD e$B$Ge(B make
e$B$7$h$&$H$7$?$i<!$N$h$&$J%(%i!<$K$J$j$^$7$?!#e(B
missing/strftime.c:465: undefined reference to `_timezone’
strftime.c e$B$Oe(B 7e$B7nEv$?$j$+$iJQ99L5$7$G!"e(Bruby
e$B$N$;$$$G$O$J$$$+$H;W$$$^$9!#e(B
strftime.c e$B$r6/@)E*$K%3%s%Q%$%k$9$k$H<!$N%(%i!<$K$J$j$^$9!#e(B
./missing/strftime.c: In function `strftime’:
./missing/strftime.c:193: error: ‘timezone’ redeclared as different kind
of symbol
/usr/include/cygwin/time.h:33: error: previous declaration of ‘timezone’
was here
e$B860x$r9M$($^$9$H!“:#F|5W$7$V$j$Ke(B cygwin
e$B$r99?7$7$?$3$H$,$”$j$^$9!#e(B
e$B2?$,$I$&JQ$o$C$?$+$O$h$/J,$+$j$^$;$s$,!“e(Bcygwin e$B$Ne(B CVS
e$B$rD4$Y$k$He(B
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/include/cygwin/time.h?cvsroot=src
e$BEv$?$j$K:G6a$:$$$V$s?'!9JQ99$,$”$j$^$7$?!#e(B
e$B<!$NJQ99$G%3%s%Q%$%k$O$H$j$“$($:$G$-$^$7$?$,!”$3$l$Oe(B
e$B0l;~A<CV$G!"%3%_%C%H$O$7$J$$J}$,$$$$$H;W$$$^$9!#e(B
e$B59$7$/$*4j$$$7$^$9!#e(B Martin.
Index: strftime.c
— strftime.c (revision 14192)
+++ strftime.c (working copy)
@@ -190,7 +190,7 @@
#ifndef HAVE_TM_ZONE
#ifndef HAVE_TM_NAME
#ifndef HAVE_TZNAME
-
extern char *timezone();
-
/*extern char *timezone();*/ struct timeval tv; struct timezone zone;
#else
@@ -462,7 +462,7 @@
#else
gettimeofday(& tv, & zone);
#ifdef CYGWIN
-
strcpy(tbuf, timezone());
-
/* strcpy(tbuf, timezone()); */ *tbuf = 0; /*
mjd: quick and dirty fix */
#else
strcpy(tbuf, timezone(zone.tz_minuteswest,
timeptr->tm_isdst > 0));
#-#-# Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
#-#-# http://www.sw.it.aoyama.ac.jp mailto:[email protected]