The patch reproduced below is able to produce our TFTP client with correct functionality in GNU/kFreeBSD, OpenBSD, and OpenSolaris. I use the presence of "union th_u" as marker.
I don't like it, but I can't think of a better solution. Please push the patch.
