httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/time/unix time.c
Date Sun, 11 Jun 2000 07:16:53 GMT
bjh         00/06/11 00:16:52

  Modified:    src/lib/apr/time/unix time.c
  Log:
  Use OS/2 native call in ap_sleep().
  
  Revision  Changes    Path
  1.29      +8 -3      apache-2.0/src/lib/apr/time/unix/time.c
  
  Index: time.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/time/unix/time.c,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- time.c	2000/06/08 00:05:14	1.28
  +++ time.c	2000/06/11 07:16:51	1.29
  @@ -66,6 +66,10 @@
   #if HAVE_TIME_H
   #include <time.h>
   #endif
  +#ifdef OS2
  +#define INCL_DOS
  +#include <os2.h>
  +#endif
   /* End System Headers */
   
   
  @@ -253,16 +257,17 @@
   
   void ap_sleep(ap_interval_time_t t)
   {
  +#ifdef OS2
  +    DosSleep(t/1000);
  +#else
       struct timeval tv;
       tv.tv_usec = t % AP_USEC_PER_SEC;
       tv.tv_sec = t / AP_USEC_PER_SEC;
       select(0, NULL, NULL, NULL, &tv);
  +#endif
   }
   
   #ifdef OS2
  -#define INCL_DOS
  -#include <os2.h>
  -
   ap_status_t ap_os2_time_to_ap_time(ap_time_t *result, FDATE os2date, FTIME os2time)
   {
     struct tm tmpdate;
  
  
  

Mime
View raw message