[libbluray-devel] [PATCH 1/3] autoconf: enable system extensions

Rafaël Carré rafael.carre at gmail.com
Mon Jan 2 18:21:43 CET 2012


Le 2012-01-02 06:10, hpi a écrit :
> Rafaël Carré wrote:
>> this provide access to e.g. strdup in glibc
>> this also gives access to glibc extensions such as asprintf or getline
> 
> I'm not sure if we want to use any non-standard library functions... At
> least availability of those should be checked in configure and
> replacement versions provided when functions are not available.
> 
> There's already internal implementation of asprintf (str_printf()).

getline is in POSIX 2008, it can be made available by defining
(_POSIX_C_SOURCE >= 200809L || _XOPEN_SOURCE >= 700) according to glibc
manpage.

I will send another patch which only defines one of those and check for
getline() presence.


More information about the libbluray-devel mailing list