From d73ac6dfb6c97152ea50872a58226298cd66999d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Zavam?= Date: Tue, 23 Oct 2018 12:32:59 +0000 Subject: fix build with GCC-based architectures. prior to this patch, some archs still using GCC could not compile the port; tested on powerpc64 (sponsored hardware); also tested on other archs to check if nothing broke. * original patch modified just to bump PORTREVISION, and use PORTSDIR root. PR: 232276 Submitted by: Piotr Kubaj Approved by: rene (mentor) Sponsored by: IntegriCloud --- .../patch-third__party_openfst_src_include_fst_replace.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 textproc/regex2dfa/files/patch-third__party_openfst_src_include_fst_replace.h (limited to 'textproc/regex2dfa/files') diff --git a/textproc/regex2dfa/files/patch-third__party_openfst_src_include_fst_replace.h b/textproc/regex2dfa/files/patch-third__party_openfst_src_include_fst_replace.h new file mode 100644 index 000000000000..1cb52acd9062 --- /dev/null +++ b/textproc/regex2dfa/files/patch-third__party_openfst_src_include_fst_replace.h @@ -0,0 +1,11 @@ +--- third_party/openfst/src/include/fst/replace.h.orig 2018-10-14 23:15:07 UTC ++++ third_party/openfst/src/include/fst/replace.h +@@ -1250,7 +1250,7 @@ class ArcIterator< ReplaceFst > { + // If state is already cached, use cached arcs array. + if (fst_.GetImpl()->HasArcs(state_)) { + (fst_.GetImpl()) +- ->template CacheBaseImpl::InitArcIterator( ++ ->CacheBaseImpl::InitArcIterator( + state_, &cache_data_); + num_arcs_ = cache_data_.narcs; + arcs_ = cache_data_.arcs; // 'arcs_' is a ptr to the cached arcs. -- cgit v1.2.3