aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2016-04-30 12:39:51 +0800
committerpi <pi@FreeBSD.org>2016-04-30 12:39:51 +0800
commit689d74e0f08906057ff1a3529ce52b5a4f6e2d32 (patch)
treec5a03ff204e191e4baf3186ec0d3558c5c930253 /x11
parentae57ad6d0b552b5710712a5e6e4fdb60bc4c922d (diff)
downloadfreebsd-ports-gnome-689d74e0f08906057ff1a3529ce52b5a4f6e2d32.tar.gz
freebsd-ports-gnome-689d74e0f08906057ff1a3529ce52b5a4f6e2d32.tar.zst
freebsd-ports-gnome-689d74e0f08906057ff1a3529ce52b5a4f6e2d32.zip
x11/fbdesk: Fix build with libc++ 3.8.0
PR: 209108 Submitted by: dim
Diffstat (limited to 'x11')
-rw-r--r--x11/fbdesk/files/patch-TextBox.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/x11/fbdesk/files/patch-TextBox.cc b/x11/fbdesk/files/patch-TextBox.cc
new file mode 100644
index 000000000000..8f6fe7ef616d
--- /dev/null
+++ b/x11/fbdesk/files/patch-TextBox.cc
@@ -0,0 +1,11 @@
+--- src/FbTk/TextBox.cc.orig 2006-03-25 15:42:00 UTC
++++ src/FbTk/TextBox.cc
+@@ -199,7 +199,7 @@ void TextBox::buttonPressEvent(XButtonEv
+ int delta = width();
+ int tmp = 0;
+ for(i = m_start_pos; i <= m_end_pos; i++) {
+- tmp = abs(event.x - font().textWidth(m_text.c_str() + m_start_pos, i - m_start_pos));
++ tmp = abs((int)(event.x - font().textWidth(m_text.c_str() + m_start_pos, i - m_start_pos)));
+
+ if (tmp < delta) {
+ delta = tmp;