+ Perhaps put back the old socket code; if on a machine that does not
+ properly support the getaddrinfo API, then use it. This is probably
+ much simpler than reimplementing it.
+
+ Alternatively, have two different files implementing the same
+ interface, and choose either the new or the old API. This is
+ probably necessary for systems that e.g. have IPv6, but
+ gethostbyaddr() can't handle it. The Linux manpage claims this is
+ currently the case.
+
+ This might get us working again on RedHat 5 and similar systems.
+ Although the Kame patch seems like a good idea, in fact it is a much
+ broader interface than the relatively narrow "open by name", "accept
+ and log" interface that rsync uses internally, and it has the
+ disadvantage of clashing with half-arsed implementations of the API.
+