[alsa-devel] [PATCH] pcm: pcm_local.h: include <time.h> to enable CLOCK_MONOTONIC

Shengjiu Wang shengjiu.wang at freescale.com
Wed Jul 23 09:09:58 CEST 2014


CLOCK_MONITONIC is defined in <bits/time.h>, add <time.h> before
<sys/time.h>.

Signed-off-by: Shengjiu Wang <shengjiu.wang at freescale.com>
---
 src/pcm/pcm_local.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/pcm/pcm_local.h b/src/pcm/pcm_local.h
index 2206afe..80bbe59 100644
--- a/src/pcm/pcm_local.h
+++ b/src/pcm/pcm_local.h
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 #include <limits.h>
 #include <sys/uio.h>
+#include <time.h>
 #include <sys/time.h>
 
 #define _snd_mask sndrv_mask
-- 
1.7.9.5



More information about the Alsa-devel mailing list