apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/time/unix time.c
Date Wed, 02 Jan 2002 20:12:34 GMT
bnicholes    02/01/02 12:12:34

  Modified:    time/unix time.c
  Log:
  Fixing up a linker issue since NetWare does not have a gettimeofday() function
  
  Revision  Changes    Path
  1.58      +7 -6      apr/time/unix/time.c
  
  Index: time.c
  ===================================================================
  RCS file: /home/cvs/apr/time/unix/time.c,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- time.c	5 Nov 2001 20:02:58 -0000	1.57
  +++ time.c	2 Jan 2002 20:12:34 -0000	1.58
  @@ -305,6 +305,13 @@
   }
   #endif
   
  +#ifdef NETWARE
  +APR_DECLARE(void) apr_netware_setup_time(void)
  +{
  +    tzset();
  +    server_gmt_offset = -timezone;
  +}
  +#else
   APR_DECLARE(void) apr_unix_setup_time(void)
   {
   #if !defined(HAVE_GMTOFF) && !defined(HAVE___OFFSET)
  @@ -352,10 +359,4 @@
   #endif
   }
   
  -#ifdef NETWARE
  -APR_DECLARE(void) apr_netware_setup_time(void)
  -{
  -    tzset();
  -    server_gmt_offset = -timezone;
  -}
   #endif
  
  
  

Mime
View raw message