aboutsummaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-01-22 01:26:03 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-01-22 01:26:03 +0000
commit786abaefa90e3cdc198cd37ff1430f910d7a99ea (patch)
treefe50de86bf15c949ce32051ad7e4c66de2b1d110 /src/output
parent66704a9a841d861bd97d339237915296cf6f5e3b (diff)
downloadpaludis-786abaefa90e3cdc198cd37ff1430f910d7a99ea.tar.gz
paludis-786abaefa90e3cdc198cd37ff1430f910d7a99ea.tar.xz
Fix GCC 4.3 build, thanks to Almathea.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/console_install_task.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/output/console_install_task.cc b/src/output/console_install_task.cc
index 9de4e6cb6..cc8550dbc 100644
--- a/src/output/console_install_task.cc
+++ b/src/output/console_install_task.cc
@@ -51,6 +51,8 @@
#include <iostream>
#include <iomanip>
#include <limits>
+#include <cstring>
+#include <cstdlib>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
@@ -88,7 +90,7 @@ namespace
}
cerr << endl;
cerr << "Exiting with failure" << endl;
- exit(EXIT_FAILURE);
+ std::exit(EXIT_FAILURE);
}
}
@@ -1725,14 +1727,14 @@ ConsoleInstallTask::show_resume_command(const std::string & resume_command_templ
else
{
cerr << "Resume command NOT saved to file: " << file_name << " due to error "
- << strerror(errno) << endl;
+ << std::strerror(errno) << endl;
cerr << "Resume command: " << file_name << endl;
}
}
else
{
cerr << "Resume command NOT saved to file: " << file_name << " due to error "
- << strerror(errno) << endl;
+ << std::strerror(errno) << endl;
cerr << "Resume command: " << resume_command << endl;
}
}