diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2012-05-21 22:51:16 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2012-05-21 22:51:16 +0000 |
| commit | 7398f9aa67243a3e1d7fc4e22647865f87c8b203 (patch) | |
| tree | 4965fe970467442487bdd8066ae94fd664e572a7 /qpid/cpp | |
| parent | 0a9202b27eefb7ea2686ea22e91919c8dc62b5bb (diff) | |
| download | qpid-python-7398f9aa67243a3e1d7fc4e22647865f87c8b203.tar.gz | |
QPID-4011: TestIsLocalHost unit_test fails with if machine name resolves to loopback address
Oops - ntohl() can be a macro so specifying ::ntohl() can fail in optimised builds.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1341246 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rwxr-xr-x | qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp b/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp index c57f784058..007d0773fc 100755 --- a/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp +++ b/qpid/cpp/src/qpid/sys/posix/SystemInfo.cpp @@ -65,7 +65,7 @@ static const string TCP("tcp"); // Test IPv4 address for loopback inline bool IN_IS_ADDR_LOOPBACK(const ::in_addr* a) { - return ((::ntohl(a->s_addr) & 0xff000000) == 0x7f000000); + return ((ntohl(a->s_addr) & 0xff000000) == 0x7f000000); } inline bool isLoopback(const ::sockaddr* addr) { |
