Sample getaddrinfo Code Compiles in Linux but not FreeBSD.

Martin McCormick martin at dc.cis.okstate.edu
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
well.

	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.

Martin


More information about the freebsd-questions mailing list