From 24688d64544b43f2c14be54531ad8764419dde09 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Sat, 16 May 2020 19:34:42 +0200 Subject: [PATCH] net-print/cnijfilter2: fix compiling with fno-common Closes: https://bugs.gentoo.org/723186 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alfredo Tupone --- net-print/cnijfilter2/cnijfilter2-5.80.ebuild | 1 + .../files/cnijfilter2-5.80-fno-common.patch | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 net-print/cnijfilter2/files/cnijfilter2-5.80-fno-common.patch diff --git a/net-print/cnijfilter2/cnijfilter2-5.80.ebuild b/net-print/cnijfilter2/cnijfilter2-5.80.ebuild index 4efba8cd2e1c..ec45c101ab1f 100644 --- a/net-print/cnijfilter2/cnijfilter2-5.80.ebuild +++ b/net-print/cnijfilter2/cnijfilter2-5.80.ebuild @@ -34,6 +34,7 @@ S="${WORKDIR}"/${MY_P} PATCHES=( "${FILESDIR}"/${PN}-5.70-gentoo.patch "${FILESDIR}"/${P}-cflags.patch + "${FILESDIR}"/${P}-fno-common.patch ) src_prepare() { diff --git a/net-print/cnijfilter2/files/cnijfilter2-5.80-fno-common.patch b/net-print/cnijfilter2/files/cnijfilter2-5.80-fno-common.patch new file mode 100644 index 000000000000..7374aa92fba9 --- /dev/null +++ b/net-print/cnijfilter2/files/cnijfilter2-5.80-fno-common.patch @@ -0,0 +1,11 @@ +--- a/lgmon3/src/cnijlgmon3.c 2020-05-16 19:28:03.585781655 +0200 ++++ b/lgmon3/src/cnijlgmon3.c 2020-05-16 19:28:13.488625335 +0200 +@@ -55,7 +55,7 @@ + int (*GET_STATUS)(char *, int, int *, int * , char *); + int (*GET_STATUS2)(char *, int, char *, int *, int * , char *, char *); + int (*GET_STATUS2_MAINTENANCE)(char *, int, char *, int *, int * , char *, char *); +-int (*GET_PROTOCOL)(char *, size_t); ++static int (*GET_PROTOCOL)(char *, size_t); + + + int main(int argc, char *argv[]) -- 2.26.2