aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2013-09-01 02:55:09 +0800
committerkwm <kwm@FreeBSD.org>2013-09-01 02:55:09 +0800
commit38dcecf08d9f9f7a6568186728179be763a9f41d (patch)
tree1ed4e6d9460d43e27347263c0180fa027f9206a1 /x11-toolkits
parent93b7d2d3fa97314659c235d223999ffee79c1b0d (diff)
downloadfreebsd-ports-gnome-38dcecf08d9f9f7a6568186728179be763a9f41d.tar.gz
freebsd-ports-gnome-38dcecf08d9f9f7a6568186728179be763a9f41d.tar.zst
freebsd-ports-gnome-38dcecf08d9f9f7a6568186728179be763a9f41d.zip
Add patches to fix the build with libc++.
Reported by: theraven@
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/gtkmm20/files/patch-gtk_gtkmm_scale.cc10
-rw-r--r--x11-toolkits/gtkmm20/files/patch-gtk_gtkmm_treeview.h19
2 files changed, 29 insertions, 0 deletions
diff --git a/x11-toolkits/gtkmm20/files/patch-gtk_gtkmm_scale.cc b/x11-toolkits/gtkmm20/files/patch-gtk_gtkmm_scale.cc
new file mode 100644
index 000000000000..919db84d7620
--- /dev/null
+++ b/x11-toolkits/gtkmm20/files/patch-gtk_gtkmm_scale.cc
@@ -0,0 +1,10 @@
+--- gtk/gtkmm/scale.cc.orig 2013-08-31 20:43:53.000000000 +0200
++++ gtk/gtkmm/scale.cc 2013-08-31 20:49:39.000000000 +0200
+@@ -31,6 +31,7 @@
+ #include <gtk/gtkhscale.h>
+ #include <gtk/gtkvscale.h>
+ #include <math.h>
++#include <cstdlib>
+
+ namespace Gtk
+ {
diff --git a/x11-toolkits/gtkmm20/files/patch-gtk_gtkmm_treeview.h b/x11-toolkits/gtkmm20/files/patch-gtk_gtkmm_treeview.h
new file mode 100644
index 000000000000..2dbcf54ee899
--- /dev/null
+++ b/x11-toolkits/gtkmm20/files/patch-gtk_gtkmm_treeview.h
@@ -0,0 +1,19 @@
+--- gtk/gtkmm/treeview.h.orig 2013-08-31 15:49:24.000000000 +0200
++++ gtk/gtkmm/treeview.h 2013-08-31 15:59:45.000000000 +0200
+@@ -3,6 +3,7 @@
+ #ifndef _GTKMM_TREEVIEW_H
+ #define _GTKMM_TREEVIEW_H
+
++#include <cstdlib>
+ #include <glibmm.h>
+
+ /* $Id: treeview.hg,v 1.71 2004/06/03 09:38:35 murrayc Exp $ */
+@@ -1296,7 +1297,7 @@
+
+ //Convert the text to a number, using the same logic used by GtkCellRendererText when it stores numbers.
+ char* pchEnd = 0;
+- ColumnType new_value = static_cast<ColumnType>( strtod(new_text.c_str(), &pchEnd) );
++ ColumnType new_value = static_cast<ColumnType>( std::strtod(new_text.c_str(), &pchEnd) );
+
+ //Store the user's new text in the model:
+ Gtk::TreeRow row = *iter;