From 9074faf170a90cd52e793160ef7ebca020d5ec83 Mon Sep 17 00:00:00 2001 From: Martin Ebourne Date: Thu, 29 May 2008 21:51:38 +0000 Subject: Fix strerror include. Needed for gcc 4.3 --- lib/common/Logging.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/common/Logging.h b/lib/common/Logging.h index 973a8944..f22755ac 100644 --- a/lib/common/Logging.h +++ b/lib/common/Logging.h @@ -10,6 +10,7 @@ #ifndef LOGGING__H #define LOGGING__H +#include #include #include #include @@ -49,11 +50,11 @@ { BOX_LOG(Log::TRACE, stuff) } #define BOX_LOG_SYS_WARNING(stuff) \ - BOX_WARNING(stuff << ": " << strerror(errno) << " (" << errno << ")") + BOX_WARNING(stuff << ": " << std::strerror(errno) << " (" << errno << ")") #define BOX_LOG_SYS_ERROR(stuff) \ - BOX_ERROR(stuff << ": " << strerror(errno) << " (" << errno << ")") + BOX_ERROR(stuff << ": " << std::strerror(errno) << " (" << errno << ")") #define BOX_LOG_SYS_FATAL(stuff) \ - BOX_FATAL(stuff << ": " << strerror(errno) << " (" << errno << ")") + BOX_FATAL(stuff << ": " << std::strerror(errno) << " (" << errno << ")") #ifdef WIN32 #define BOX_LOG_WIN_ERROR(stuff) \ -- cgit v1.2.3