--- /dev/null
+--- a/src/ptlib/unix/svcproc.cxx
++++ b/src/ptlib/unix/svcproc.cxx
+@@ -217,7 +217,7 @@
+ pid_t pid;
+
+ {
+- ifstream pidfile(pidfilename);
++ ifstream pidfile(static_cast<const char*>(pidfilename));
+ if (!pidfile.is_open()) {
+ cout << "Could not open pid file: \"" << pidfilename << "\""
+ " - " << strerror(errno) << endl;
+@@ -384,7 +384,7 @@
+ // Run as a daemon, ie fork
+
+ if (!pidfilename) {
+- ifstream pidfile(pidfilename);
++ ifstream pidfile(static_cast<const char*>(pidfilename));
+ if (pidfile.is_open()) {
+ pid_t pid;
+ pidfile >> pid;
+@@ -412,7 +412,7 @@
+ cout << "Daemon started with pid " << pid << endl;
+ if (!pidfilename) {
+ // Write out the child pid to magic file in /var/run (at least for linux)
+- ofstream pidfile(pidfilename);
++ ofstream pidfile(static_cast<const char*>(pidfilename));
+ if (pidfile.is_open())
+ pidfile << pid;
+ else
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
"${FILESDIR}/${PN}-2.10.9-pkgconfig_ldflags.patch" \
"${FILESDIR}/${PN}-2.10.9-respect_cxxflags.patch" \
"${FILESDIR}/${PN}-2.10.10-mga-bison-parameter.patch" \
- "${FILESDIR}/${PN}-2.10.10-respect_cflags_cxxflags.patch"
+ "${FILESDIR}/${PN}-2.10.10-respect_cflags_cxxflags.patch" \
+ "${FILESDIR}/${P}-gcc6.patch"
if ! use telnet; then
epatch "${FILESDIR}/${PN}-2.10.9-disable-telnet-symbols.patch"