http://bugs.winehq.org/show_bug.cgi?id=36713
--- Comment #12 from Erich Hoover erich.e.hoover@gmail.com --- (In reply to Bruno Jesus from comment #11)
Vitaliy's approach is more like the opposite currently implemented in ws2_32 ntop: http://source.winehq.org/git/wine.git/blob/HEAD:/dlls/ws2_32/socket.c#l6864
I'm not sure if that is required or not, tests may help.
I think it would be better to convert the address family (IIRC we already have a routine to do that). The #ifdef is not necessary though, inet_pton is POSIX.1-2001.