From: Cygwin Ports maintainer Date: Wed, 30 Jan 2008 12:44:13 +0000 (+0000) Subject: gst/gstutils.c: Fix compilation on systems that have posix timers but no monotonic... X-Git-Tag: RELEASE-0_10_17~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0bc121de5022967864da38d73b92c5b72601d6b;p=platform%2Fupstream%2Fgstreamer.git gst/gstutils.c: Fix compilation on systems that have posix timers but no monotonic clock. Original commit message from CVS: * gst/gstutils.c: Fix compilation on systems that have posix timers but no monotonic clock. Fixes: #512715 Patch By: Cygwin Ports maintainer --- diff --git a/ChangeLog b/ChangeLog index 2570d8d..170197b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2008-01-30 Jan Schmidt + * gst/gstutils.c: + Fix compilation on systems that have posix timers but no + monotonic clock. + Fixes: #512715 + Patch By: Cygwin Ports maintainer + +2008-01-30 Jan Schmidt + * tools/gst-inspect.c: Revert previous commit in preparation for an impromptu 0.10.17 release diff --git a/gst/gstutils.c b/gst/gstutils.c index 1b446f9..7a1dacf 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -3344,7 +3344,7 @@ gst_type_register_static_full (GType parent_type, GstClockTime gst_util_get_timestamp (void) { -#ifdef HAVE_POSIX_TIMERS +#if defined (HAVE_POSIX_TIMERS) && defined(HAVE_MONOTONIC_CLOCK) struct timespec now; clock_gettime (CLOCK_MONOTONIC, &now);