[Freeswitch-svn] [commit] r7076 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Thu Jan 3 16:41:15 EST 2008


Author: anthm
Date: Thu Jan  3 16:41:15 2008
New Revision: 7076

Modified:
   freeswitch/trunk/src/switch_apr.c
   freeswitch/trunk/src/switch_time.c

Log:
update

Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c	(original)
+++ freeswitch/trunk/src/switch_apr.c	Thu Jan  3 16:41:15 2008
@@ -233,7 +233,7 @@
 
 SWITCH_DECLARE(switch_time_t) switch_time_now(void)
 {
-#ifdef HAVE_CLOCK_GETTIME
+#if defined(HAVE_CLOCK_GETTIME) && defined(SWITCH_USE_CLOCK_FUNCS)
 	struct timespec ts;
 	clock_gettime(CLOCK_REALTIME,&ts);
 	return ts.tv_sec * APR_USEC_PER_SEC + (ts.tv_nsec/1000);

Modified: freeswitch/trunk/src/switch_time.c
==============================================================================
--- freeswitch/trunk/src/switch_time.c	(original)
+++ freeswitch/trunk/src/switch_time.c	Thu Jan  3 16:41:15 2008
@@ -82,8 +82,8 @@
 
 SWITCH_DECLARE(void) switch_sleep(switch_interval_time_t t)
 {
-	
-#if defined(HAVE_CLOCK_NANOSLEEP)
+
+#if defined(HAVE_CLOCK_NANOSLEEP) && defined(SWITCH_USE_CLOCK_FUNCS)	
 	struct timespec ts;
 	ts.tv_sec = t / APR_USEC_PER_SEC;
 	ts.tv_nsec = (t % APR_USEC_PER_SEC) * 1000;



More information about the Freeswitch-svn mailing list