fix build error
This commit is contained in:
parent
3065961397
commit
5837069b8e
25
Fix-compilation-failure-caused-by-gcc12.patch
Normal file
25
Fix-compilation-failure-caused-by-gcc12.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
diff --git a/src/lib/WPXContentListener.cpp b/src/lib/WPXContentListener.cpp
|
||||||
|
index ab0f9b1..0b559e6 100644
|
||||||
|
--- a/src/lib/WPXContentListener.cpp
|
||||||
|
+++ b/src/lib/WPXContentListener.cpp
|
||||||
|
@@ -23,6 +23,7 @@
|
||||||
|
* Corel Corporation or Corel Corporation Limited."
|
||||||
|
*/
|
||||||
|
|
||||||
|
+#include <cstddef>
|
||||||
|
#include "WPXContentListener.h"
|
||||||
|
#include "WPXPageSpan.h"
|
||||||
|
#include "libwpd_internal.h"
|
||||||
|
diff --git a/src/lib/WPXTable.cpp b/src/lib/WPXTable.cpp
|
||||||
|
index 0ad202a..3ff35e1 100644
|
||||||
|
--- a/src/lib/WPXTable.cpp
|
||||||
|
+++ b/src/lib/WPXTable.cpp
|
||||||
|
@@ -25,6 +25,8 @@
|
||||||
|
* Corel Corporation or Corel Corporation Limited."
|
||||||
|
*/
|
||||||
|
|
||||||
|
+#include <cstddef>
|
||||||
|
+
|
||||||
|
#include "WPXTable.h"
|
||||||
|
|
||||||
|
#include "libwpd_internal.h"
|
||||||
@ -1,10 +1,11 @@
|
|||||||
Name: libwpd
|
Name: libwpd
|
||||||
Summary: A library for importing WordPerfect (tm) documents
|
Summary: A library for importing WordPerfect (tm) documents
|
||||||
Version: 0.10.3
|
Version: 0.10.3
|
||||||
Release: 2
|
Release: 3
|
||||||
License: LGPLv2+ or MPLv2.0
|
License: LGPLv2+ or MPLv2.0
|
||||||
URL: http://libwpd.sf.net/
|
URL: http://libwpd.sf.net/
|
||||||
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
|
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
|
||||||
|
patch0: Fix-compilation-failure-caused-by-gcc12.patch
|
||||||
|
|
||||||
BuildRequires: boost-devel doxygen gcc-c++ help2man
|
BuildRequires: boost-devel doxygen gcc-c++ help2man
|
||||||
BuildRequires: pkgconfig(librevenge-0.0) pkgconfig(librevenge-generators-0.0)
|
BuildRequires: pkgconfig(librevenge-0.0) pkgconfig(librevenge-generators-0.0)
|
||||||
@ -81,5 +82,8 @@ done
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 14 2023 liyanan <thistleslyn@163.com> - 0.10.3-3
|
||||||
|
- fix build error
|
||||||
|
|
||||||
* Fri Dec 13 2019 zhouyihang <zhouyihang1@huawei.com> - 0.10.3-2
|
* Fri Dec 13 2019 zhouyihang <zhouyihang1@huawei.com> - 0.10.3-2
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user