aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2013-12-04 06:10:25 +0800
committerkwm <kwm@FreeBSD.org>2013-12-04 06:10:25 +0800
commitc872ae0c48710ad143554568350117691e35983e (patch)
treec933326c37bf14610c1b0d8fd916204e6fe8b4e7 /science
parent1b3363df24dae3cbb8accac2037f7ca517892d6d (diff)
downloadfreebsd-ports-gnome-c872ae0c48710ad143554568350117691e35983e.tar.gz
freebsd-ports-gnome-c872ae0c48710ad143554568350117691e35983e.tar.zst
freebsd-ports-gnome-c872ae0c48710ad143554568350117691e35983e.zip
Add patch to unbreak with libc++ 10.0+.
_S_cur is a libstdc++ enum symbol. Much thanks to rdivacky@ for helping finding this.
Diffstat (limited to 'science')
-rw-r--r--science/gchemutils/files/patch-libs_gcugtk_spectrumdoc.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/science/gchemutils/files/patch-libs_gcugtk_spectrumdoc.cc b/science/gchemutils/files/patch-libs_gcugtk_spectrumdoc.cc
new file mode 100644
index 000000000000..4ecd95070095
--- /dev/null
+++ b/science/gchemutils/files/patch-libs_gcugtk_spectrumdoc.cc
@@ -0,0 +1,11 @@
+--- libs/gcugtk/spectrumdoc.cc.orig 2013-12-03 20:54:28.000000000 +0100
++++ libs/gcugtk/spectrumdoc.cc 2013-12-03 20:55:55.000000000 +0100
+@@ -1478,7 +1478,7 @@
+ break; // this should not occur, but a corrupted or bad file is always possible
+ s.getline (line, 300);
+ if (strstr (line, "##")) {
+- s.seekg (-strlen (line) -1, _S_cur);
++ s.seekg (-strlen (line) -1, s.cur);
+ if (read > npoints) {
+ g_warning (_("Found too many data!"));
+ // FIXME: throw an exception