You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mm...@apache.org on 2002/06/12 17:51:48 UTC

cvs commit: jakarta-tomcat-connectors/jk/native/apache-1.3 mod_jk.c

mmanders    2002/06/12 08:51:48

  Modified:    jk/native/apache-1.3 mod_jk.c
  Log:
  Added check for NO_GETTIMEOFDAY since gettimeofday isn't supported on all platforms.
  
  Revision  Changes    Path
  1.27      +5 -1      jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c
  
  Index: mod_jk.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- mod_jk.c	21 Apr 2002 22:57:11 -0000	1.26
  +++ mod_jk.c	12 Jun 2002 15:51:48 -0000	1.27
  @@ -1526,9 +1526,11 @@
   
               s.ws_private = &private_data;
               s.pool = &private_data.p;            
  +#ifndef NO_GETTIMEOFDAY
               if(conf->format != NULL) {
                   gettimeofday(&tv_begin, NULL);
               }
  +#endif
   
               if(init_ws_service(&private_data, &s, conf)) {
                   jk_endpoint_t *end = NULL;
  @@ -1553,6 +1555,7 @@
                       }
                       end->done(&end, l);
                   }
  +#ifndef NO_GETTIMEOFDAY
                   if(conf->format != NULL) {
                       char *duration = NULL;
                       char *status = NULL;
  @@ -1568,6 +1571,7 @@
                       ap_table_setn(r->notes, JK_DURATION, duration);
                       request_log_transaction(r,conf);
                   }
  +#endif
               }
   
               jk_close_pool(&private_data.p);
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>