summaryrefslogtreecommitdiff
path: root/editors/calligra
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2013-11-06 16:42:14 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2013-11-06 16:42:14 +0000
commite7c8f6e8f9bd5eb6d946f1461472e3e1a4d88438 (patch)
treede1fcd38b76cab1bfb296cd7870bc6aee2e6da50 /editors/calligra
parent06acdd364d3099c79bc6a48b7b417206d2759f70 (diff)
downloadfreebsd-ports-e7c8f6e8f9bd5eb6d946f1461472e3e1a4d88438.zip
Add upstream patch to fix the build with libc++.
Diffstat (limited to 'editors/calligra')
-rw-r--r--editors/calligra/files/patch-git_3f2bf6c25
1 files changed, 25 insertions, 0 deletions
diff --git a/editors/calligra/files/patch-git_3f2bf6c b/editors/calligra/files/patch-git_3f2bf6c
new file mode 100644
index 000000000000..662bacab9291
--- /dev/null
+++ b/editors/calligra/files/patch-git_3f2bf6c
@@ -0,0 +1,25 @@
+commit 3f2bf6cf65a280b449e3ad854d3a6c4ce92208bc
+Author: Yue Liu <yue.liu@mail.com>
+Date: Sat Oct 12 12:10:40 2013 -0400
+
+ fix osx compile issue
+
+--- filters/words/msword-odf/wv2/src/word97_helper.cpp
++++ filters/words/msword-odf/wv2/src/word97_helper.cpp
+@@ -31,6 +31,7 @@
+ #include <string.h> // memcpy
+ #include <algorithm>
+ #include <functional> // std::bind2nd for gcc 2.9x
++#include <cstdlib>
+
+ #include "wvlog.h"
+
+@@ -730,7 +731,7 @@ namespace
+ {
+ m_center = readS16( ptr + index * sizeof( S16 ) );
+ // A negative value doesn't make sense here, right? Hmmm
+- m_plusMinus = std::abs( readS16( ptr + itbdDelMax * sizeof( S16 ) + index * sizeof( S16 ) ) );
++ m_plusMinus = std::abs( (int)( readS16( ptr + itbdDelMax * sizeof( S16 ) + index * sizeof( S16 ) ) ) );
+ }
+
+ bool contains( S16 position ) const { return m_center - m_plusMinus <= position && m_center + m_plusMinus >= position; }