We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)
This commit is contained in:
parent
c2e8c8acd8
commit
5e9dc15360
1 changed files with 1 additions and 3 deletions
|
@ -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>
|
||||
#include <ifaddrs.h>
|
||||
#endif
|
||||
|
||||
typedef u_int SOCKET;
|
||||
|
|
Loading…
Reference in a new issue