[llvm-commits] [llvm] r74834 - /llvm/trunk/lib/System/Errno.cpp
Jeffrey Yasskin
jyasskin at google.com
Mon Jul 6 09:50:30 PDT 2009
Author: jyasskin
Date: Mon Jul 6 11:50:27 2009
New Revision: 74834
URL: http://llvm.org/viewvc/llvm-project?rev=74834&view=rev
Log:
Oops, I #included errno.h from inside the llvm::sys namespace.
Modified:
llvm/trunk/lib/System/Errno.cpp
Modified: llvm/trunk/lib/System/Errno.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Errno.cpp?rev=74834&r1=74833&r2=74834&view=diff
==============================================================================
--- llvm/trunk/lib/System/Errno.cpp (original)
+++ llvm/trunk/lib/System/Errno.cpp Mon Jul 6 11:50:27 2009
@@ -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 sys {
#if HAVE_ERRNO_H
-#include <errno.h>
std::string StrError() {
return StrError(errno);
}
More information about the llvm-commits
mailing list