[PATCH] Check for existence of asprintf and vasprintf
Mike Frysinger
vapier@gentoo.org
Wed Feb 22 18:57:00 GMT 2017
On 22 Feb 2017 18:43, Ulf Hermann wrote:
> > sorry, but i don't know what you're talking about. you don't read the
> > gnulib code/modules directly, you just run gnulib-tool and tell it which
> > modules to import. it does all the rest for you.
> >
> > you want asprintf ? then add it to the list.
> > modules=(
> > asprintf
> > glob
> > vasprintf
> > ...whatever else you want...
> > )
> > gnulib-tool --import "${modules[@]}"
>
> I see. Some of the functions are not available from gnulib, though. In particular, GNU-style basename abd GNU-style strerror_r. There might be more.
you're probably looking at the raw module list.
you'll want to look at the full documentation instead:
https://www.gnu.org/software/gnulib/MODULES.html
basename() is in the dirname module
you're correct that GNU strerror_r is not handled by gnulib.
that doesn't look like it's too hard to deal with, but it is
something that'd have to be considered.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/elfutils-devel/attachments/20170222/6186d65d/attachment.sig>
More information about the Elfutils-devel
mailing list