Mark Campbell <mark(dot)campbell(at)ucs-software(dot)co(dot)za> writes: > Looks correct as some of the errors seem to be gone, however where would > I have to add/include the "h_errno" and the "warning: unreachable code > at beginning of switch statement" worries me h_errno ought to be declared in <netdb.h> according to the standard. Can you find it on your machine? regards, tom lane