FreeBSD 4.9 -STABLE
It looks like FreeBSD requires that <sys/types.h> be included
before <netinet/in.h>. If this is not the case, integer types
are not defined properly.
It is not clear whether this is a bug in FreeBSD header files or GnuPG, but the attached workaround should work on any platform as well.
See attached patch