Commit f4a2ebda authored by Pekka Pessi's avatar Pekka Pessi

su_time0.c, m4/sac-su2.m4: check for CLOCK_MONOTONIC, too

darcs-hash:20080724170433-db55f-e08bfe006e082cdd0198fefb8cb6433e11ba1c9e.gz
parent 7f630b23
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment