Followup-For: Bug #1066703 Control: tag -1 patch Attached is a patch that fixes the missing prototypes.
Andreas
>From fe497acc8ee1883cd9d061e43c864eaf5e5c3e1c Mon Sep 17 00:00:00 2001 From: Andreas Beckmann <a...@debian.org> Date: Sun, 28 Apr 2024 08:23:21 +0200 Subject: [PATCH] fix building with -Werror=implicit-function-declaration Closes: #1066703 --- debian/patches/missing-prototypes.patch | 23 +++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 24 insertions(+) create mode 100644 debian/patches/missing-prototypes.patch diff --git a/debian/patches/missing-prototypes.patch b/debian/patches/missing-prototypes.patch new file mode 100644 index 0000000..167c712 --- /dev/null +++ b/debian/patches/missing-prototypes.patch @@ -0,0 +1,23 @@ +Author: Andreas Beckmann <a...@debian.org> +Description: fix building with -Werror=implicit-function-declaration + major()/minor() are in sys/sysmacros.h + asprintf() is only exposed by stdio.h if _GNU_SOURCE is defined + +--- a/src/SerialImp.c ++++ b/src/SerialImp.c +@@ -55,6 +55,7 @@ + | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + | All trademarks belong to their respective owners. + --------------------------------------------------------------------------*/ ++#define _GNU_SOURCE + #if defined(__MWERKS__) /* dima */ + #include "RXTXPort.h" /* dima */ + #else /* dima */ +@@ -146,6 +147,7 @@ + #ifdef LIBLOCKDEV + #include <lockdev.h> + #endif /* LIBLOCKDEV */ ++#include <sys/sysmacros.h> + + extern int errno; + diff --git a/debian/patches/series b/debian/patches/series index b96a048..96e8844 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -14,3 +14,4 @@ fix_snprintf.patch format_security.patch privacy-breach.patch java10-compatibility.patch +missing-prototypes.patch -- 2.20.1