You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/01/03 09:10:28 UTC

svn commit: r492075 - /incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Utils.cpp

Author: jsdelfino
Date: Wed Jan  3 00:10:27 2007
New Revision: 492075

URL: http://svn.apache.org/viewvc?view=rev&rev=492075
Log:
Ported the printLastError utility method to Linux.

Modified:
    incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Utils.cpp

Modified: incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Utils.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Utils.cpp?view=diff&rev=492075&r1=492074&r2=492075
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Utils.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/util/Utils.cpp Wed Jan  3 00:10:27 2007
@@ -586,6 +586,9 @@
                 os << (const char *)buf;
                 LocalFree(buf);
 #else
+                char buf[256];
+                strerror_r(errno, buf, 255);
+                os << buf;
 #endif
             }
         



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org