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

Takashi Iwai tiwai at suse.de
Wed Jul 23 12:07:13 CEST 2014


At Wed, 23 Jul 2014 15:09:58 +0800,
Shengjiu Wang wrote:
> 
> 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>

Thanks, applied.


Takashi

> ---
>  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