On Windows, the WSA system needs to be initialized to be able to look up
host names.
This patch also changes *addr = 0 to use the constant INADDR_LOOPBACK
instead, which seems to be required on Windows.
pull/1/head
Alexander Dorokhine15 years agocommitted byJohannes Schindelin