mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
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:
parent
bde7112b42
commit
d0bc121de5
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* tools/gst-inspect.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);
|
||||
|
|
Loading…
Reference in a new issue