Add patch to unbreak with libc++ 10.0+.

_S_cur is a libstdc++ enum symbol.

Much thanks to rdivacky@ for helping finding this.
This commit is contained in:
Koop Mast 2013-12-03 22:10:25 +00:00
parent 5dbda1a7f4
commit ae2f2f7817
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335596

View File

@ -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