aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--src/clock.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 8617ffb08..7fa7dc035 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ ver 0.17.4 (2013/??/??)
- ffmpeg: support float planar audio (ffmpeg 1.1)
* player:
- implement missing "idle" events on output errors
+* clock: fix build failure
ver 0.17.3 (2013/01/06)
diff --git a/src/clock.c b/src/clock.c
index 4100fa2d8..dcdf685ab 100644
--- a/src/clock.c
+++ b/src/clock.c
@@ -25,6 +25,9 @@
#include <mach/mach_time.h>
#else
#include <time.h>
+#ifndef CLOCK_MONOTONIC
+#include <sys/time.h>
+#endif
#endif
unsigned