From 4733e747d1b2c946ad186ab9a480d5527861fb04 Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Mon, 6 Jul 2009 16:50:27 +0000 Subject: [PATCH] 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 --- lib/System/Errno.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/System/Errno.cpp b/lib/System/Errno.cpp index d046aba04dd..68f66f6e439 100644 --- a/lib/System/Errno.cpp +++ b/lib/System/Errno.cpp @@ -17,6 +17,10 @@ #if HAVE_STRING_H #include +#if HAVE_ERRNO_H +#include +#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 std::string StrError() { return StrError(errno); }