summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter-Levine <plevine457@gmail.com>2017-05-11 01:05:59 -0400
committerMichał Górny <mgorny@gentoo.org>2017-05-19 00:25:42 +0200
commit2283a06a3813a77ce1e00e8f1539b05d2b5b3d90 (patch)
tree22a9d552e779b4db9dd1870c184bef772fe0d94c /net-libs/ptlib/files
parentx11-drivers/nvidia-drivers: Raise kernel compatibility. (diff)
downloadgentoo-2283a06a3813a77ce1e00e8f1539b05d2b5b3d90.tar.gz
gentoo-2283a06a3813a77ce1e00e8f1539b05d2b5b3d90.tar.bz2
gentoo-2283a06a3813a77ce1e00e8f1539b05d2b5b3d90.zip
net-libs/ptlib: Fix building with GCC-6
Bug: https://bugs.gentoo.org/595690 Closes: https://github.com/gentoo/gentoo/pull/4600 Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'net-libs/ptlib/files')
-rw-r--r--net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch b/net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch
new file mode 100644
index 000000000000..140de64f16e4
--- /dev/null
+++ b/net-libs/ptlib/files/ptlib-2.10.11-gcc6.patch
@@ -0,0 +1,29 @@
+--- 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