void-packages/srcpkgs/distcc/patches/gcc-10.patch

16 lines
515 B
Diff

Upstream: Should be
Reason: Fixes compilation under gcc-10 which has -fno-common
diff --git a/src/stats.c b/src/stats.c
index 35dbf7d..76bfbee 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -82,7 +82,7 @@ struct statsdata {
char compiler[MAX_FILENAME_LEN];
};
-const char *stats_text[20] = { "TCP_ACCEPT", "REJ_BAD_REQ", "REJ_OVERLOAD",
+extern const char *stats_text[20] = { "TCP_ACCEPT", "REJ_BAD_REQ", "REJ_OVERLOAD",
"COMPILE_OK", "COMPILE_ERROR", "COMPILE_TIMEOUT", "CLI_DISCONN",
"OTHER" };