Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dd851ed

Browse files
committedSep 26, 2016
avutil/time: disable clock_gettime() in apple platform
1 parent cc1a4fe commit dd851ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎libavutil/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int64_t av_gettime(void)
5555

5656
int64_t av_gettime_relative(void)
5757
{
58-
#if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC)
58+
#if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC) && !defined(__APPLE__)
5959
struct timespec ts;
6060
clock_gettime(CLOCK_MONOTONIC, &ts);
6161
return (int64_t)ts.tv_sec * 1000000 + ts.tv_nsec / 1000;

0 commit comments

Comments
 (0)
Please sign in to comment.