On Fri, 20 Jul 2012, Anthony Liguori wrote:

> Handle is uninitialized which causes the configure check to fail.
> 

http://patchwork.ozlabs.org/patch/171688/

Has an advantage of not expecting alsa/asoundlib.h including
stddef.h

> Cc: malc <av1...@comtv.ru>
> Signed-off-by: Anthony Liguori <aligu...@us.ibm.com>
> ---
>  configure |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/configure b/configure
> index cef0a71..8335117 100755
> --- a/configure
> +++ b/configure
> @@ -1888,7 +1888,7 @@ for drv in $audio_drv_list; do
>      case $drv in
>      alsa)
>      audio_drv_probe $drv alsa/asoundlib.h -lasound \
> -        "snd_pcm_t **handle; return snd_pcm_close(*handle);"
> +        "snd_pcm_t **handle = NULL; return snd_pcm_close(*handle);"
>      libs_softmmu="-lasound $libs_softmmu"
>      ;;
>  
> 

-- 
mailto:av1...@comtv.ru

Reply via email to