!9 fix build error caused by upgrade to GCC-10
From: @aslfjk Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
33c87c2890
25
pnm2ppa-gcc10.patch
Normal file
25
pnm2ppa-gcc10.patch
Normal file
@ -0,0 +1,25 @@
|
||||
diff --git a/syslog.c b/syslog.c
|
||||
index e70f12c..af067e2 100644
|
||||
--- a/syslog.c
|
||||
+++ b/syslog.c
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "global.h"
|
||||
|
||||
|
||||
+char syslog_message[128];
|
||||
|
||||
/*
|
||||
For some reason, BeOS doesn't seem to implement syslog(), even though it is
|
||||
diff --git a/syslog.h b/syslog.h
|
||||
index 7d0e436..5c1accd 100644
|
||||
--- a/syslog.h
|
||||
+++ b/syslog.h
|
||||
@@ -39,7 +39,7 @@
|
||||
#include <syslog.h>
|
||||
#endif
|
||||
|
||||
-char syslog_message[128];
|
||||
+extern char syslog_message[128];
|
||||
extern size_t message_size ;
|
||||
|
||||
void wrap_syslog( int, char *, char *);
|
||||
@ -1,6 +1,6 @@
|
||||
Name: pnm2ppa
|
||||
Version: 1.04
|
||||
Release: 42
|
||||
Release: 43
|
||||
Summary: HP PPA GhostScript filter
|
||||
License: GPLv2+ and GPLv2
|
||||
URL: https://sourceforge.net/projects/pnm2ppa
|
||||
@ -9,6 +9,7 @@ Source1: http://www.httptech.com/ppa/files/ppa-0.8.6.tar.gz
|
||||
|
||||
Patch1: pbm2ppa-20000205.diff
|
||||
Patch2: pnm2ppa-coverity-return-local.patch
|
||||
Patch3: pnm2ppa-gcc10.patch
|
||||
|
||||
Patch9000: bugfix-debranding.patch
|
||||
|
||||
@ -66,6 +67,9 @@ chmod 644 docs/en/LICENSE
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 30 2021 wangyong<wangyong187@huawei.com> - 1.04-43
|
||||
- Patch for GCC-10
|
||||
|
||||
* Mon Feb 17 2020 wanjiankang<wanjiankang@huawei.com> - 1.04-42
|
||||
- Package init
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user