This patch is to improve libcurl handling of gethostbyname() results when built with uClibc. The symptoms are a segmentation fault when a host has no aliases. This is because libc returns a pointer to an empty list if there are no aliases returned from gethostbyname where uClibc returns a NULL pointer. When hostcache_fixoffset() is called to fix up the returned offsets it attempts to relocate the NULL pointer resulting in a seg fault. The patch also contains some comments on the #if #else structures to make them a bit more followable.