Oops, I #included errno.h from inside the llvm::sys namespace.
authorJeffrey Yasskin <jyasskin@google.com>
Mon, 6 Jul 2009 16:50:27 +0000 (16:50 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Mon, 6 Jul 2009 16:50:27 +0000 (16:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74834 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Errno.cpp

index d046aba04dd5c2e48065e369eb3d39cf883b9dbd..68f66f6e439bd6f36126780594d8a21b50d33d1c 100644 (file)
 #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);
 }