ptlib-2.10.11-gcc6.patch (979B)
1 --- a/src/ptlib/unix/svcproc.cxx 2 +++ b/src/ptlib/unix/svcproc.cxx 3 @@ -217,7 +217,7 @@ 4 pid_t pid; 5 6 { 7 - ifstream pidfile(pidfilename); 8 + ifstream pidfile(static_cast<const char*>(pidfilename)); 9 if (!pidfile.is_open()) { 10 cout << "Could not open pid file: \"" << pidfilename << "\"" 11 " - " << strerror(errno) << endl; 12 @@ -384,7 +384,7 @@ 13 // Run as a daemon, ie fork 14 15 if (!pidfilename) { 16 - ifstream pidfile(pidfilename); 17 + ifstream pidfile(static_cast<const char*>(pidfilename)); 18 if (pidfile.is_open()) { 19 pid_t pid; 20 pidfile >> pid; 21 @@ -412,7 +412,7 @@ 22 cout << "Daemon started with pid " << pid << endl; 23 if (!pidfilename) { 24 // Write out the child pid to magic file in /var/run (at least for linux) 25 - ofstream pidfile(pidfilename); 26 + ofstream pidfile(static_cast<const char*>(pidfilename)); 27 if (pidfile.is_open()) 28 pidfile << pid; 29 else