summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) \