#include <netinet/in.h> to improve portability, as sockaddr_in formally needs it.
Compare changes
Rößner-Network-Solutions
Created by: dhke
sockaddr_in formally needs #include <netinet/in.h> not only #include <sys/socket.h> This also fixes a compile-time error on FreeBSD.