Commit 6211c09e authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Rémi Duraffort

Do not use clock_gettime() on OS/2.

There is no implementation of clock_gettime() on OS/2.
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 10b9b0f7
...@@ -527,7 +527,7 @@ static int gettimeofday (struct timeval *tv, void *tz ) ...@@ -527,7 +527,7 @@ static int gettimeofday (struct timeval *tv, void *tz )
uint64_t NTPtime64 (void) uint64_t NTPtime64 (void)
{ {
struct timespec ts; struct timespec ts;
#if defined (CLOCK_REALTIME) #if defined (CLOCK_REALTIME) && !defined (__OS2__)
clock_gettime (CLOCK_REALTIME, &ts); clock_gettime (CLOCK_REALTIME, &ts);
#else #else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment