diff --git a/src/ptlib/unix/channel.cxx b/src/ptlib/unix/channel.cxx index 2935644..80c8d09 100644 --- a/src/ptlib/unix/channel.cxx +++ b/src/ptlib/unix/channel.cxx @@ -34,6 +34,7 @@ #pragma implementation "channel.h" #pragma implementation "indchan.h" +#include #include #include diff --git a/src/ptlib/unix/svcproc.cxx b/src/ptlib/unix/svcproc.cxx index 4f21025..2c957ef 100644 --- a/src/ptlib/unix/svcproc.cxx +++ b/src/ptlib/unix/svcproc.cxx @@ -217,7 +217,7 @@ int PServiceProcess::InitialiseService() pid_t pid; { - ifstream pidfile(pidfilename); + ifstream pidfile((const char *)pidfilename); if (!pidfile.is_open()) { cout << "Could not open pid file: \"" << pidfilename << "\"" " - " << strerror(errno) << endl; @@ -384,7 +384,7 @@ int PServiceProcess::InitialiseService() // Run as a daemon, ie fork if (!pidfilename) { - ifstream pidfile(pidfilename); + ifstream pidfile((const char *)pidfilename); if (pidfile.is_open()) { pid_t pid; pidfile >> pid; @@ -412,7 +412,7 @@ int PServiceProcess::InitialiseService() 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((const char *)pidfilename); if (pidfile.is_open()) pidfile << pid; else