Patch attached. Since I havnt got a DARWIN machine to test on I can't confirm it works, but it should. It works on Linux anyway (not that it needs to).
Darwin might need some slightly different sa.[members] set to make getnameinfo work but it shouldnt be anything major. If someone with a darwin box could try it out I'd be much obliged. Turn HostnameLookups On to get an idea as to whether it's working or not.
Hi Colm -
I'm not sure what to be looking for, but i applied your patch, rebuilt (with the broken_ipv6 set to 0, of course), turned on HostnameLookups, and my access logs have remote hostname properly resolved. I'm running Darwin Kernel Version 6.6. Let me know if you want me to try out anything else.
sterling