[llvm-commits] CVS: llvm/lib/System/Unix/Unix.h

Chris Lattner lattner at cs.uiuc.edu
Mon Feb 14 13:42:23 PST 2005



Changes in directory llvm/lib/System/Unix:

Unix.h updated: 1.11 -> 1.12
---
Log message:

Fix a bug in my previous change to this, which broke the build on sparcs.


---
Diffs of the changes:  (+1 -1)

 Unix.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/System/Unix/Unix.h
diff -u llvm/lib/System/Unix/Unix.h:1.11 llvm/lib/System/Unix/Unix.h:1.12
--- llvm/lib/System/Unix/Unix.h:1.11	Sun Feb 13 16:46:37 2005
+++ llvm/lib/System/Unix/Unix.h	Mon Feb 14 15:42:10 2005
@@ -77,7 +77,7 @@
     // 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






More information about the llvm-commits mailing list