We should include netinet/in.h to use sockaddr_in (POSIX.1-2001)

This commit is contained in:
Timothy Redaelli
2012-04-25 14:07:24 +02:00
committed by Luke Dashjr
parent 07d1a50aee
commit ea22a380de
2 changed files with 2 additions and 2 deletions

View File

@@ -13,6 +13,8 @@
#ifdef WIN32
#include <string.h>
#else
#include <netinet/in.h>
#endif
#ifdef USE_UPNP

View File

@@ -19,8 +19,6 @@
#include <netdb.h>
#include <net/if.h>
#include <ifaddrs.h>
#endif
#ifdef BSD
#include <netinet/in.h>
#endif