提交 cf3a9217 authored 作者: Michael Jerris's avatar Michael Jerris

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
上级 e5f406b9
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) ...@@ -179,7 +179,7 @@ su_nanotime_t su_nanotime(su_nanotime_t *return_time)
*/ */
su_nanotime_t su_monotime(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; struct timespec tv;
......
...@@ -442,6 +442,10 @@ AC_ARG_WITH(rt, ...@@ -442,6 +442,10 @@ AC_ARG_WITH(rt,
if test "${with_rt}" != no; then if test "${with_rt}" != no; then
AC_SEARCH_LIBS(clock_gettime, rt) AC_SEARCH_LIBS(clock_gettime, rt)
AC_CHECK_FUNCS([clock_gettime clock_getcpuclockid]) 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 fi
# No GLib path explicitly defined, use pkg-config # No GLib path explicitly defined, use pkg-config
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论