diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-11-24 13:58:57 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-11-24 13:58:58 -0300 |
commit | f75210b4f485fed4d210fb7d2744448561b83bdd (patch) | |
tree | 16266714f72646eaff2cec6a3d181f4ffa501501 /main/distcc/gcc-10.patch | |
parent | fd99f143e50e6412f8bdd889c89813f12f0f0ec5 (diff) | |
download | aports-f75210b4f485fed4d210fb7d2744448561b83bdd.zip |
main/distcc: fix build under gcc-10
Diffstat (limited to 'main/distcc/gcc-10.patch')
-rw-r--r-- | main/distcc/gcc-10.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/main/distcc/gcc-10.patch b/main/distcc/gcc-10.patch new file mode 100644 index 00000000000..60f1f24c257 --- /dev/null +++ b/main/distcc/gcc-10.patch @@ -0,0 +1,29 @@ +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" }; + +diff --git a/src/stats.h b/src/stats.h +index 9bde285..74d4690 100644 +--- a/src/stats.h ++++ b/src/stats.h +@@ -33,7 +33,7 @@ enum stats_e { STATS_TCP_ACCEPT, STATS_REJ_BAD_REQ, STATS_REJ_OVERLOAD, + STATS_COMPILE_OK, STATS_COMPILE_ERROR, STATS_COMPILE_TIMEOUT, + STATS_CLI_DISCONN, STATS_OTHER, STATS_ENUM_MAX }; + +-const char *stats_text[20]; ++extern const char *stats_text[20]; + + int dcc_stats_init(void); + void dcc_stats_init_kid(void); |