projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cc8fa7
)
Oops, I #included errno.h from inside the llvm::sys namespace.
author
Jeffrey Yasskin
<jyasskin@google.com>
Mon, 6 Jul 2009 16:50:27 +0000
(16:50 +0000)
committer
Jeffrey 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
patch
|
blob
|
history
diff --git
a/lib/System/Errno.cpp
b/lib/System/Errno.cpp
index d046aba04dd5c2e48065e369eb3d39cf883b9dbd..68f66f6e439bd6f36126780594d8a21b50d33d1c 100644
(file)
--- 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);
}