mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
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:
+6
-1
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user