[Libguestfs] [PATCH supermin v2 4/4] init: Debug which libc is in use.
Pino Toscano
ptoscano at redhat.com
Wed Feb 17 15:59:36 UTC 2016
On Wednesday 17 February 2016 14:22:34 Richard W.M. Jones wrote:
> ---
> init/init.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/init/init.c b/init/init.c
> index 25d6bc6..38392c4 100644
> --- a/init/init.c
> +++ b/init/init.c
> @@ -94,6 +94,15 @@ main ()
> print_uptime ();
> fprintf (stderr, "supermin: ext2 mini initrd starting up: "
> PACKAGE_VERSION
> +#if defined(__dietlibc__)
> + " dietlibc"
> +#elif defined(__GLIBC__)
> + " glibc"
This needs to be put as last, as libc implementations that copied the
glibc headers (such as uclibc) define __GLIBC__...
> +#elif defined(__NEWLIB_H__)
> + " newlib"
> +#elif defined(__UCLIBC__)
> + " uClibc"
#else
# error unrecognized libc
While not having an identification string is not an issue, requiring it
might ease check whether supermin has actually been tested with a libc.
Thanks,
--
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20160217/073e503a/attachment.sig>
More information about the Libguestfs
mailing list