aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-07-06 16:50:27 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-07-06 16:50:27 +0000
commit4733e747d1b2c946ad186ab9a480d5527861fb04 (patch)
tree76b779ed88464a05a098b69db8446e71c50420c3
parent9cc8fa72a3f23a7233866127dab85808b3f987ce (diff)
Oops, I #included errno.h from inside the llvm::sys namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74834 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/System/Errno.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/System/Errno.cpp b/lib/System/Errno.cpp
index d046aba04d..68f66f6e43 100644
--- a/lib/System/Errno.cpp
+++ b/lib/System/Errno.cpp
@@ -17,6 +17,10 @@
#if HAVE_STRING_H
#include <string.h>
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
//===----------------------------------------------------------------------===//
//=== WARNING: Implementation here must contain only TRULY operating system
//=== independent code.
@@ -26,7 +30,6 @@ namespace llvm {
namespace sys {
#if HAVE_ERRNO_H
-#include <errno.h>
std::string StrError() {
return StrError(errno);
}