aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHagen Fritsch <fritsch+git@in.tum.de>2013-02-27 19:42:32 +0100
committerMax Kellermann <max@duempel.org>2013-02-27 19:42:35 +0100
commit28a60db5aa4c368e221595444b76c66ba1fe6960 (patch)
treecf0bbd392e1a5684094869aee98f3d8c80b58964
parentd5b756413a1ea432e8e580b27fef004223895f07 (diff)
downloadmpd-28a60db5aa4c368e221595444b76c66ba1fe6960.tar.gz
mpd-28a60db5aa4c368e221595444b76c66ba1fe6960.tar.xz
mpd-28a60db5aa4c368e221595444b76c66ba1fe6960.zip
clock: add missing include
-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