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 <yselkowitz at users dot sourceforge
dot net>
This commit is contained in:
Cygwin Ports maintainer 2008-01-30 12:44:13 +00:00 committed by Jan Schmidt
parent bde7112b42
commit d0bc121de5
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2008-01-30 Jan Schmidt <jan.schmidt@sun.com>
* gst/gstutils.c:
Fix compilation on systems that have posix timers but no
monotonic clock.
Fixes: #512715
Patch By: Cygwin Ports maintainer <yselkowitz at users dot sourceforge
dot net>
2008-01-30 Jan Schmidt <jan.schmidt@sun.com> 2008-01-30 Jan Schmidt <jan.schmidt@sun.com>
* tools/gst-inspect.c: * tools/gst-inspect.c:

View file

@ -3344,7 +3344,7 @@ gst_type_register_static_full (GType parent_type,
GstClockTime GstClockTime
gst_util_get_timestamp (void) gst_util_get_timestamp (void)
{ {
#ifdef HAVE_POSIX_TIMERS #if defined (HAVE_POSIX_TIMERS) && defined(HAVE_MONOTONIC_CLOCK)
struct timespec now; struct timespec now;
clock_gettime (CLOCK_MONOTONIC, &now); clock_gettime (CLOCK_MONOTONIC, &now);