[vlc-commits] Do not use clock_gettime() on OS/2.

KO Myung-Hun git at videolan.org
Tue Apr 5 13:20:54 CEST 2011


vlc | branch: master | KO Myung-Hun <komh at chollian.net> | Mon Apr  4 22:01:54 2011 +0200| [6211c09e64384f130607659d8dfa0dfcdab37877] | committer: Rémi Duraffort

Do not use clock_gettime() on OS/2.

There is no implementation of clock_gettime() on OS/2.

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6211c09e64384f130607659d8dfa0dfcdab37877
---

 src/misc/mtime.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/mtime.c b/src/misc/mtime.c
index 115dbe9..ac8afb5 100644
--- a/src/misc/mtime.c
+++ b/src/misc/mtime.c
@@ -527,7 +527,7 @@ static int gettimeofday (struct timeval *tv, void *tz )
 uint64_t NTPtime64 (void)
 {
     struct timespec ts;
-#if defined (CLOCK_REALTIME)
+#if defined (CLOCK_REALTIME) && !defined (__OS2__)
     clock_gettime (CLOCK_REALTIME, &ts);
 #else
     {



More information about the vlc-commits mailing list