You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bn...@apache.org on 2002/01/02 21:12:34 UTC

cvs commit: apr/time/unix time.c

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