diff options
author | Jakov Smolic <jakov.smolic@sartura.hr> | 2021-01-24 20:23:50 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-01-24 20:23:50 +0100 |
commit | 83d9afd518cff628d49a5f10daacb6b7fdebd0ca (patch) | |
tree | 42c71b297d9c08840811c542b3e3e8b530cc6ada /app-admin/newsyslog/files | |
parent | net-analyzer/icinga2: cleanup old (diff) | |
download | gentoo-83d9afd518cff628d49a5f10daacb6b7fdebd0ca.tar.gz gentoo-83d9afd518cff628d49a5f10daacb6b7fdebd0ca.tar.bz2 gentoo-83d9afd518cff628d49a5f10daacb6b7fdebd0ca.zip |
app-admin/newsyslog: Fix build with gcc-10
Closes: https://bugs.gentoo.org/707452
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-admin/newsyslog/files')
-rw-r--r-- | app-admin/newsyslog/files/newsyslog-1.1.0.81-fno-common.patch | 43 | ||||
-rw-r--r-- | app-admin/newsyslog/files/newsyslog-1.1.0.81-html.patch | 4 |
2 files changed, 45 insertions, 2 deletions
diff --git a/app-admin/newsyslog/files/newsyslog-1.1.0.81-fno-common.patch b/app-admin/newsyslog/files/newsyslog-1.1.0.81-fno-common.patch new file mode 100644 index 000000000000..b63e439064ee --- /dev/null +++ b/app-admin/newsyslog/files/newsyslog-1.1.0.81-fno-common.patch @@ -0,0 +1,43 @@ +https://bugs.gentoo.org/707452 +--- a/sig2str.c ++++ b/sig2str.c +@@ -63,7 +63,7 @@ extern const unsigned int sys_nsigname; /* also from sys_signame.c */ + #endif + + #if !defined(SYS_SIGNAME_DECLARED) +-const char *const sys_signame[]; /* defined in sys_signame.c */ ++extern const char *const sys_signame[]; /* defined in sys_signame.c */ + #endif + + #if !defined(HAVE_DECL_SIG2STR) +--- a/str2sig.c ++++ b/str2sig.c +@@ -29,7 +29,7 @@ static const char rcsid[] = + #include "newsyslog.h" /* generic portability definitions */ + + #if !defined(SYS_SIGNAME_DECLARED) +-const char *const sys_signame[]; /* defined in signame.c */ ++extern const char *const sys_signame[]; /* defined in signame.c */ + #endif + + /* NetBSD gained sys_nsig sometime just prior to 1.4 */ +@@ -65,7 +65,7 @@ extern const unsigned int sys_nsigname; /* also from sys_signame.c */ + #endif + + #if !defined(SYS_SIGNAME_DECLARED) +-const char *const sys_signame[]; /* defined in sys_signame.c */ ++extern const char *const sys_signame[]; /* defined in sys_signame.c */ + #endif + + #if !defined(HAVE_DECL_STR2SIG) +--- a/sys_signame.c ++++ b/sys_signame.c +@@ -22,7 +22,7 @@ + #include "config.h" + #include <sys/types.h> + +-const char *const sys_signame[] = { ++extern const char *const sys_signame[] = { + /* 0 */ "Signal 0", /* Fake value for zero */ + /* 1 */ "HUP", /* Control TTY hangup */ + /* 2 */ "INT", /* Control TTY interrupt */ diff --git a/app-admin/newsyslog/files/newsyslog-1.1.0.81-html.patch b/app-admin/newsyslog/files/newsyslog-1.1.0.81-html.patch index 873cfc10991a..1e2b07019f35 100644 --- a/app-admin/newsyslog/files/newsyslog-1.1.0.81-html.patch +++ b/app-admin/newsyslog/files/newsyslog-1.1.0.81-html.patch @@ -1,5 +1,5 @@ ---- a/Makefile.in 2018-06-24 14:36:18.647850208 +0000 -+++ b/Makefile.in 2018-06-24 14:37:50.216321235 +0000 +--- a/Makefile.in ++++ b/Makefile.in @@ -763,7 +763,7 @@ .8.8.html: |