diff options
Diffstat (limited to 'qpid/cpp/src/qpid/sys/posix/check.h')
| -rw-r--r-- | qpid/cpp/src/qpid/sys/posix/check.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/sys/posix/check.h b/qpid/cpp/src/qpid/sys/posix/check.h index aa93c37205..32fdc48077 100644 --- a/qpid/cpp/src/qpid/sys/posix/check.h +++ b/qpid/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*/ |
