Author: rjung
Date: Wed Jul 25 07:33:07 2007
New Revision: 559478
URL: http://svn.apache.org/viewvc?view=rev&rev=559478
Log:
Another round: fix compilation error under windows
caused by the complex gettimeofday() macro.
Modified:
tomcat/connectors/trunk/jk/native/common/jk_util.c
Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL:
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?view=diff&rev=559478&r1=559477&r2=559478
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Wed Jul 25 07:33:07 2007
@@ -423,11 +423,13 @@
#ifndef NO_GETTIMEOFDAY
if ( l->log_fmt_type != JK_TIME_SUBSEC_NONE ) {
struct timeval tv;
- int rc;
+ int rc = 0;
- /* Don't concat the next line with the previous one, */
- /* because gettimeofday() is a macro for WIN32 */
+#ifdef WIN32
+ gettimeofday(&tv, NULL);
+#else
rc = gettimeofday(&tv, NULL);
+#endif
if ( rc == 0 ) {
char subsec[7];
t = tv.tv_sec;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]