[vlc-devel] [PATCH] configure.ac: properly detect vasprintf

Rafaël Carré funman at videolan.org
Thu Mar 22 15:33:52 CET 2012


Le 2012-03-22 10:08, Rémi Denis-Courmont a écrit :
> On Thu, 22 Mar 2012 09:00:08 +0000, Natanael Copa <ncopa at alpinelinux.org>
> wrote:
>> According POSIX the va_list is defined in stdarg.h
>> http://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdarg.h.html
>>
>> On some systems (like uClibc) the detection of vasprintf will fail
>> unless stdarg.h is included and build will later fail due to a vasprintf
>> redeclaration.
> 
> Yeah

Applied, thanks.

> well... This wouldn't be a problem if AC_REPLACE_FUNCS() were used
> like normal.

AC_REPLACE_FUNCS() doesn't work with static inline functions (e.g. mingw
which uses it to select between posix/c99 and windows printf format)



More information about the vlc-devel mailing list