We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
@ -21,10 +21,8 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <net/if.h>
#include <ifaddrs.h>
#endif
#ifdef BSD
#include <netinet/in.h>
typedef u_int SOCKET;