From b8f945d37096dd4c7ecd0628ba4b20ef29bdafae Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Mon, 6 Jul 2009 16:50:27 +0000 Subject: 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(-) (limited to 'lib/System') diff --git a/lib/System/Errno.cpp b/lib/System/Errno.cpp index d046aba..68f66f6 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); } -- cgit v1.1