diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2008-07-29 20:27:08 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2008-07-29 20:27:08 +0000 |
| commit | eaa71dc56b0ec9bddc24709a2ab8d1b6e3d13e9c (patch) | |
| tree | ccb2b945c326b6da091cd24f712fa8b78f7bc858 /cpp/src/qpid/sys/posix/AsynchIO.cpp | |
| parent | bcd7f23da214d3d8c9128d9073a7deb81768bc5f (diff) | |
| download | qpid-python-eaa71dc56b0ec9bddc24709a2ab8d1b6e3d13e9c.tar.gz | |
QPID-1198 (Partial): Missing header files that are really needed
Patches from Manuel Teira.
Compilation works on Linux due to implicit header inclusions but
fails on Solaris
Some tightening up of std and global namespace use.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@680830 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/posix/AsynchIO.cpp')
| -rw-r--r-- | cpp/src/qpid/sys/posix/AsynchIO.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/posix/AsynchIO.cpp b/cpp/src/qpid/sys/posix/AsynchIO.cpp index 58c7800514..d464ec826f 100644 --- a/cpp/src/qpid/sys/posix/AsynchIO.cpp +++ b/cpp/src/qpid/sys/posix/AsynchIO.cpp @@ -31,6 +31,7 @@ #include <sys/socket.h> #include <signal.h> #include <errno.h> +#include <string.h> #include <boost/bind.hpp> @@ -133,7 +134,8 @@ void AsynchConnector::connComplete(DispatchHandle& h) connCallback(socket); DispatchHandle::doDelete(); } else { - failure(errCode, std::string(strerror(errCode))); + // TODO: This need to be fixed as strerror isn't thread safe + failure(errCode, std::string(::strerror(errCode))); } } |
