summaryrefslogtreecommitdiff
path: root/sys-boot/lilo/files/lilo-24.x-check-for-__GLIBC__.patch
blob: be3443629cfab91da89ef8f801764f64ad2819ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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,