Issue of the installation on MacOS.

Created by: Anonymous

There is an error when execute "make" to compile main.cpp

../sources/main.cpp:452:110: error: braces around scalar initializer for type 'in_port_t {aka short unsigned int}' struct sockaddr_in serv_addr = {AF_INET, htons(common::port), {.s_addr = inet_addr("127.0.0.1")}, {}};

There is a difference of the declaration of struct "sockaddr_in" in MacOS,

struct sockaddr_in { ** __uint8_t sin_len;** sa_family_t sin_family; in_port_t sin_port; struct in_addr sin_addr; char sin_zero[8]; };

Hope you can fix it. Thanks