summaryrefslogtreecommitdiff
path: root/lib/common/Logging.h
diff options
context:
space:
mode:
authorMartin Ebourne <martin@ebourne.me.uk>2008-05-29 21:51:38 +0000
committerMartin Ebourne <martin@ebourne.me.uk>2008-05-29 21:51:38 +0000
commit9074faf170a90cd52e793160ef7ebca020d5ec83 (patch)
tree348dd6b67653755f9ee4612bdcf7c7c46718c92c /lib/common/Logging.h
parent9cdd4bbb2eb2393809e46680df1593cca3bd578e (diff)
Fix strerror include. Needed for gcc 4.3
Diffstat (limited to 'lib/common/Logging.h')
-rw-r--r--lib/common/Logging.h7
1 files changed, 4 insertions, 3 deletions
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 <cstring>
#include <iomanip>
#include <sstream>
#include <vector>
@@ -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) \