forked from Mirrors/freeswitch
Thu Jul 24 13:04:33 EDT 2008 Pekka Pessi <first.last@nokia.com>
* su_time0.c, m4/sac-su2.m4: check for CLOCK_MONOTONIC, too git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9270 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e5f406b9b6
commit
cf3a921708
@ -1 +1 @@
|
||||
Tue Aug 12 13:04:10 EDT 2008
|
||||
Tue Aug 12 13:04:33 EDT 2008
|
||||
|
@ -179,7 +179,7 @@ su_nanotime_t su_nanotime(su_nanotime_t *return_time)
|
||||
*/
|
||||
su_nanotime_t su_monotime(su_nanotime_t *return_time)
|
||||
{
|
||||
#if HAVE_CLOCK_GETTIME
|
||||
#if HAVE_CLOCK_GETTIME && CLOCK_MONOTONIC
|
||||
{
|
||||
struct timespec tv;
|
||||
|
||||
|
@ -442,6 +442,10 @@ AC_ARG_WITH(rt,
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user