Print GLIBC version in pihole-FTL -vv and not during compile time as "#pragma message" is not supported by older clang versions

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2024-05-19 09:05:44 +02:00
parent 67fdf2915b
commit 25ab7b726c
2 changed files with 6 additions and 7 deletions
+6 -1
View File
@@ -715,7 +715,12 @@ void parse_args(int argc, char* argv[])
printf("Branch: " GIT_BRANCH "\n");
printf("Commit: " GIT_HASH " (" GIT_DATE ")\n");
printf("Architecture: " FTL_ARCH "\n");
printf("Compiler: " FTL_CC "\n\n");
printf("Compiler: " FTL_CC "\n");
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
printf("GLIBC version: %d.%d\n\n", __GLIBC__, __GLIBC_MINOR__);
#else
printf("GLIBC version: -\n\n");
#endif
// Print dnsmasq version and compile time options
print_dnsmasq_version(yellow, green, bold, normal);
-6
View File
@@ -28,12 +28,6 @@
// export_queries_to_disk()
#include "database/query-table.h"
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
#pragma message "Minimum GLIBC version: " xstr(__GLIBC__) "." xstr(__GLIBC_MINOR__)
#else
#pragma message "Minimum GLIBC version: unknown, assuming this is a MUSL build"
#endif
char *username;
bool needGC = false;
bool needDBGC = false;