diff -Nru gnuais-0.3.3/debian/changelog gnuais-0.3.3/debian/changelog --- gnuais-0.3.3/debian/changelog 2019-08-12 12:01:26.000000000 +0000 +++ gnuais-0.3.3/debian/changelog 2020-08-09 15:12:41.000000000 +0000 @@ -1,8 +1,9 @@ -gnuais (0.3.3-8build2) eoan; urgency=medium +gnuais (0.3.3-9) unstable; urgency=medium - * No change rebuild for libmysqlclient21. + * Fix build for GCC 10 (Closes: #957290) + - debian/patches/0003-Fix-compile-error-for-GCC-10.patch - -- Robie Basak Mon, 12 Aug 2019 12:01:26 +0000 + -- Ruben Undheim Sun, 09 Aug 2020 17:12:41 +0200 gnuais (0.3.3-8) unstable; urgency=medium diff -Nru gnuais-0.3.3/debian/patches/0003-Fix-compile-error-for-GCC-10.patch gnuais-0.3.3/debian/patches/0003-Fix-compile-error-for-GCC-10.patch --- gnuais-0.3.3/debian/patches/0003-Fix-compile-error-for-GCC-10.patch 1970-01-01 00:00:00.000000000 +0000 +++ gnuais-0.3.3/debian/patches/0003-Fix-compile-error-for-GCC-10.patch 2020-08-09 13:06:35.000000000 +0000 @@ -0,0 +1,42 @@ +From: Ruben Undheim +Date: Sun, 26 Jul 2020 20:38:37 +0200 +Subject: Fix compile error for GCC 10 + +--- + src/out_mysql.h | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/src/out_mysql.h b/src/out_mysql.h +index 967fa1d..48f925e 100644 +--- a/src/out_mysql.h ++++ b/src/out_mysql.h +@@ -1,4 +1,3 @@ +- + /* + * out_mysql.h + * +@@ -20,6 +19,8 @@ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ ++#ifndef OUT_MYSQL_H ++#define OUT_MYSQL_H + + #include + #ifdef HAVE_MYSQL +@@ -32,7 +33,9 @@ struct mysql_state_t { + int connected; + int inserts; + #endif +-} *my; ++}; ++ ++extern struct mysql_state_t *my; + + extern struct mysql_state_t *myout_init(); + +@@ -55,3 +58,4 @@ extern int myout_ais_vesseldatab(struct mysql_state_t *my, + + extern int myout_nmea(struct mysql_state_t *my, time_t tid, char *nmea); + ++#endif /* OUT_MYSQL_H */ diff -Nru gnuais-0.3.3/debian/patches/series gnuais-0.3.3/debian/patches/series --- gnuais-0.3.3/debian/patches/series 2018-09-22 12:57:19.000000000 +0000 +++ gnuais-0.3.3/debian/patches/series 2020-08-09 13:06:35.000000000 +0000 @@ -1,2 +1,3 @@ 01_conf_location.patch 02_fix_inline_functions.patch +0003-Fix-compile-error-for-GCC-10.patch