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/check.h | |
| 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/check.h')
| -rw-r--r-- | cpp/src/qpid/sys/posix/check.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/posix/check.h b/cpp/src/qpid/sys/posix/check.h index aa93c37205..32fdc48077 100644 --- a/cpp/src/qpid/sys/posix/check.h +++ b/cpp/src/qpid/sys/posix/check.h @@ -25,6 +25,7 @@ #include "qpid/Exception.h" #include <cerrno> #include <assert.h> +#include <stdio.h> #define QPID_POSIX_ERROR(ERRNO) qpid::Exception(QPID_MSG(qpid::strError(ERRNO))) @@ -41,7 +42,7 @@ #define QPID_POSIX_ASSERT_THROW_IF(ERRNO) QPID_POSIX_THROW_IF(ERRNO) #else #define QPID_POSIX_ASSERT_THROW_IF(ERRNO) \ - do { int e=(ERRNO); if (e) { errno=e; perror(0); assert(0); } } while(0) + do { int e=(ERRNO); if (e) { errno=e; ::perror(0); assert(0); } } while(0) #endif #endif /*!_posix_check_h*/ |
