summaryrefslogtreecommitdiff
path: root/time/unix
diff options
context:
space:
mode:
authorbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2002-01-02 20:12:34 +0000
committerbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2002-01-02 20:12:34 +0000
commit010db425b882b3a1c31e84adb78ed0c908b39bcd (patch)
tree1d11dbbc706dab5fd7027b47ef19ce4eddb61a62 /time/unix
parent3b50a53ea72919225bb6e9faa84d41e5264ac2a9 (diff)
downloadlibapr-010db425b882b3a1c31e84adb78ed0c908b39bcd.tar.gz
Fixing up a linker issue since NetWare does not have a gettimeofday() function
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'time/unix')
-rw-r--r--time/unix/time.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/time/unix/time.c b/time/unix/time.c
index f81d62680..8eb9aba67 100644
--- a/time/unix/time.c
+++ b/time/unix/time.c
@@ -305,6 +305,13 @@ APR_DECLARE(apr_status_t) apr_os2_time_to_apr_time(apr_time_t *result, FDATE os2
}
#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 @@ APR_DECLARE(void) apr_unix_setup_time(void)
#endif
}
-#ifdef NETWARE
-APR_DECLARE(void) apr_netware_setup_time(void)
-{
- tzset();
- server_gmt_offset = -timezone;
-}
#endif