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