[Freeswitch-svn] [commit] r9270 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/su m4

Freeswitch SVN mikej at freeswitch.org
Tue Aug 12 13:04:38 EDT 2008


Author: mikej
Date: Tue Aug 12 13:04:38 2008
New Revision: 9270

Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_time0.c
   freeswitch/trunk/libs/sofia-sip/m4/sac-su2.m4

Log:
Thu Jul 24 13:04:33 EDT 2008  Pekka Pessi <first.last at nokia.com>
  * su_time0.c, m4/sac-su2.m4: check for CLOCK_MONOTONIC, too



Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Tue Aug 12 13:04:38 2008
@@ -1 +1 @@
-Tue Aug 12 13:04:10 EDT 2008
+Tue Aug 12 13:04:33 EDT 2008

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_time0.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_time0.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_time0.c	Tue Aug 12 13:04:38 2008
@@ -179,7 +179,7 @@
  */
 su_nanotime_t su_monotime(su_nanotime_t *return_time)
 {
-#if HAVE_CLOCK_GETTIME
+#if HAVE_CLOCK_GETTIME && CLOCK_MONOTONIC
   {
     struct timespec tv;
   

Modified: freeswitch/trunk/libs/sofia-sip/m4/sac-su2.m4
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/m4/sac-su2.m4	(original)
+++ freeswitch/trunk/libs/sofia-sip/m4/sac-su2.m4	Tue Aug 12 13:04:38 2008
@@ -442,6 +442,10 @@
 if test "${with_rt}" != no; then
 	AC_SEARCH_LIBS(clock_gettime, rt)
         AC_CHECK_FUNCS([clock_gettime clock_getcpuclockid])
+        AC_CHECK_DECL([CLOCK_MONOTONIC],
+AC_DEFINE([HAVE_CLOCK_MONOTONIC], 1,
+[Define to 1 if you have CLOCK_MONOTONIC]),,[
+#include <time.h>])
 fi
 
 # No GLib path explicitly defined, use pkg-config



More information about the Freeswitch-svn mailing list