summaryrefslogtreecommitdiff
path: root/lib/System/Unix/Unix.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-14 21:42:10 +0000
committerChris Lattner <sabre@nondot.org>2005-02-14 21:42:10 +0000
commit0798056b286051fd0f9e8704179ebb4f577cadd5 (patch)
tree8e338ab4f36e31091da6e773e7c417a8a6831cce /lib/System/Unix/Unix.h
parent27e192196fec42618c7fcbd865e8e0b541545671 (diff)
downloadllvm-0798056b286051fd0f9e8704179ebb4f577cadd5.tar.gz
llvm-0798056b286051fd0f9e8704179ebb4f577cadd5.tar.bz2
llvm-0798056b286051fd0f9e8704179ebb4f577cadd5.tar.xz
Fix a bug in my previous change to this, which broke the build on sparcs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix/Unix.h')
-rw-r--r--lib/System/Unix/Unix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Unix/Unix.h b/lib/System/Unix/Unix.h
index 75009d0746..2f57b68c8e 100644
--- a/lib/System/Unix/Unix.h
+++ b/lib/System/Unix/Unix.h
@@ -77,7 +77,7 @@ inline void ThrowErrno(const std::string& prefix) {
// Copy the thread un-safe result of strerror into
// the buffer as fast as possible to minimize impact
// of collision of strerror in multiple threads.
- if (Errno)
+ if (errno)
strncpy(buffer,strerror(errno),MAXPATHLEN-1);
buffer[MAXPATHLEN-1] = 0;
#else