Sample getaddrinfo Code Compiles in Linux but not FreeBSD.

Martin McCormick martin at
Wed Jan 18 22:50:19 UTC 2012

Peter Andreev writes:

> #include <netinet/in.h>

	Many thanks. That made the FreeBSD version work just as

	As soon as I saw netinet.h, I realized it wasn't in the
original  code as the Linux libraries apparently accomplish the
same thing without that header.


More information about the freebsd-questions mailing list