fix build with latest boost

f41
David Tardon 5 years ago
parent 547714a7e5
commit 30edc89a8b

@ -0,0 +1,33 @@
From 4b4d879a6db69ea05b89fdf99df8cb5d902d16b6 Mon Sep 17 00:00:00 2001
From: Roland Illig <roland.illig@gmx.de>
Date: Tue, 19 May 2020 08:43:39 +0200
Subject: [PATCH] add missing include for std::for_each
On NetBSD 8.0 x86_64, gcc complains:
NUM3Parser.cpp: In member function 'virtual bool libetonyek::NUM3Parser::parseDocument()':
NUM3Parser.cpp:46:3: error: 'for_each' is not a member of 'std'
std::for_each(sheetListRefs.begin(), sheetListRefs.end(), std::bind(&NUM3Parser::parseSheet, this, std::placeholders::_1));
Change-Id: I723ba1bcbd10ed9215ceea8c5b224fdc5242be65
Reviewed-on: https://gerrit.libreoffice.org/c/libetonyek/+/94450
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
---
src/lib/NUM3Parser.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/NUM3Parser.cpp b/src/lib/NUM3Parser.cpp
index 66fb195..c19b611 100644
--- a/src/lib/NUM3Parser.cpp
+++ b/src/lib/NUM3Parser.cpp
@@ -7,6 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include <algorithm>
#include <functional>
#include "NUM3Parser.h"
--
2.26.2

@ -2,7 +2,7 @@
Name: libetonyek
Version: 0.1.9
Release: 6%{?dist}
Release: 7%{?dist}
Summary: A library for import of Apple iWork documents
License: MPLv2.0
@ -25,6 +25,7 @@ BuildRequires: pkgconfig(mdds-1.5)
BuildRequires: pkgconfig(zlib)
Patch1: 0001-glm-force-dmat3-initialization-needed-from-v0.9.9.0.patch
Patch2: 0001-add-missing-include-for-std-for_each.patch
%description
%{name} is library for import of Apple iWork documents. It supports
@ -123,6 +124,9 @@ fi
%{_mandir}/man1/pages2text.1*
%changelog
* Thu Jun 04 2020 David Tardon <dtardon@redhat.com> - 0.1.9-7
- fix build with latest boost
* Thu Feb 06 2020 Caolán McNamara <caolanm@redhat.com> - 0.1.9-6
- add fix for contemporary glm

Loading…
Cancel
Save