ws2_32: getaddrinfo("", ...) on OS X.

David Nadlinger code at klickverbot.at
Thu Feb 2 09:36:56 CST 2012


getaddrinfo() on Windows resolves an empty, but non-null host string to 
the addresses of all the network interfaces. A workaround for Linux was 
added in 75be2284, but unfortunately it does not work on OS X, since 
there, the host part of the machine name alone usually fails to resolve.

Tested on OS X 10.7.2, Arch Linux (Kernel 3.1.4, glibc 2.14.1) and 
Ubuntu Oneric.

See http://klickverbot.at/p/getaddrinfo for a detailed comparison of the 
edge case behavior on the different OSes.
---
  dlls/ws2_32/socket.c |    5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ws2_32-getaddrinfo-.-on-OS-X.patch
Type: text/x-patch
Size: 834 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120202/03341739/attachment.bin>


More information about the wine-patches mailing list