gst/gstutils.c: Fix compilation on systems that have posix timers but no monotonic...
authorCygwin Ports maintainer <yselkowitz@users.sourceforge>
Wed, 30 Jan 2008 12:44:13 +0000 (12:44 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Wed, 30 Jan 2008 12:44:13 +0000 (12:44 +0000)
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>

ChangeLog
gst/gstutils.c

index 2570d8d..170197b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 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>
+
        * tools/gst-inspect.c:
        Revert previous commit in preparation for an impromptu 0.10.17 release
 
index 1b446f9..7a1dacf 100644 (file)
@@ -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);