ppc32. I'm sure there's a Right Way to fix it, and this isn't it.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5161
VG_(sprintf)(name, "<unknown>");
} else {
UInt addr = sa->sin_addr.s_addr;
-
+# if defined(VG_BIGENDIAN)
+ /* This is a hack. I don't know enough to navigate my way through the
+ ntohl/ntonl maze. JRS 17 Nov 05. */
+ addr = (((addr >> 24) & 0xFF) << 0) | (((addr >> 16) & 0xFF) << 8)
+ | (((addr >> 8) & 0xFF) << 16) | (((addr >> 0) & 0xFF) << 24);
+# endif
if (addr == 0) {
VG_(sprintf)(name, "<unbound>");
} else {