You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-boot/lilo/files/lilo-24.x-check-for-__GLIBC...

19 lines
712 B

diff -Naurp lilo-24.2.orig/src/lilo.c lilo-24.2/src/lilo.c
--- lilo-24.2.orig/src/lilo.c 2021-06-06 15:53:52.389730145 -0400
+++ lilo-24.2/src/lilo.c 2021-06-06 15:53:28.309159571 -0400
@@ -182,7 +182,14 @@ extern int has_partitions_beta(dev_t dev
printf("Without");
#endif
printf(" device-mapper\n");
+#ifdef __GLIBC__
+ /*
+ * __GLIBC__ is defined in features.h, which should be pulled
+ * in by stdio.h, but this is not guaranteed nor apparently
+ * documented anywhere.
+ */
printf("\nglibc version %d.%d\n", __GLIBC__, __GLIBC_MINOR__);
+#endif
printf("Kernel Headers included from %d.%d.%d\n",
LINUX_VERSION_CODE>>16,
LINUX_VERSION_CODE>>8 & 255,